spring-attic / spring-social-samples

Samples of using Spring Social
http://projects.spring.io/spring-social
Apache License 2.0
532 stars 814 forks source link

Missing callback URL in Twitter app prevents tweeting #66

Open kuhmuh opened 7 years ago

kuhmuh commented 7 years ago

Hello,

after setting up your example for Twitter at first glance everything works fine with Twitter. But posting tweets ended in an exception: I/O error on POST request for "https://api.twitter.com/1.1/statuses/update.json": cannot retry due to server authentication, in streaming mode; nested exception is java.net.HttpRetryException: cannot retry due to server authentication, in streaming mode After some research I finally found a solution. Your predefined Twitter app is not set up correctly in your samples context. A callback URL is mandatory for sending tweets. Please see https://spring.io/guides/gs/accessing-twitter/ .

Be sure to register a callback URL with Twitter (it has to be a valid URL, but it doesn’t need to be the URL of your app).

BR Stefan

anatolyw commented 5 years ago

Hi, can you, please, explain, which callback is missing? I can perform successfully all GET operations and have this issue just with POST on statuses/update.json, i.e. timelineOperations().updateStatus("My new status")

Eltemerabi commented 4 years ago

Hi , I'm facing the same issue could you please guide me to to solve this issue ?

anatolyw commented 4 years ago

Sorry, still open point with spring-social-twitter. I have implemented a workaround by extracting acquired access token received by spring-social-library and feed it to another library which makes POST without problems.