Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

Missing callback URL in Twitter app prevents tweeting #66

Open
kuhmuh opened this issue Feb 9, 2017 · 3 comments
Open

Missing callback URL in Twitter app prevents tweeting #66

kuhmuh opened this issue Feb 9, 2017 · 3 comments

Comments

@kuhmuh
Copy link

kuhmuh commented Feb 9, 2017

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
Copy link

anatolyw commented Dec 4, 2018

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
Copy link

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

@anatolyw
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants