spring boot - Accessing Twitter Data - Failed authentication with valid credentials -


i've downloaded code spring's started guide - accessing twitter data https://spring.io/guides/gs/accessing-twitter/ .

i set credentials in application.properties , made no other changes. run app, , when attempts connect twitter, fails exception on connectcontroller line 240:

resourceaccessexception: org.springframework.web.client.resourceaccessexception: i/o error on post request "https://api.twitter.com/oauth/request_token":cannot retry due server authentication, in streaming mode; nested exception java.net.httpretryexception: cannot retry due server authentication, in streaming mode

i have checked credentials being read app. valid - use them connect application i've written twitter4j, although in case use token , token secret in addition consumer key , consumer secret.

any ideas?

thanks

i had same issue : happened because did not set callback url in twitter setting.

just check in twitter app settings callback field set (i used same url website field).


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -