spring-attic / spring-social-twitter

Twitter API binding and connect support.
http://projects.spring.io/spring-social-twitter
Apache License 2.0
122 stars 114 forks source link

401 from Twitter after sending a status with a valid configuration #125

Open fabianpiau opened 6 years ago

fabianpiau commented 6 years ago

Hello,

I cannot send a status on twitter since April 22nd. It was working fine before for many months. I did not change the config related to Twitter on my app or on Twitter side. I've tried changing the settings on my app, regenerated the keys, created a new app, but it did not work.

Twitter always respond with:

ERROR: 401 :: Could not authenticate you.

Note I was able to post a status manually with Postman using the same credentials and OAuth1. I think something has changed on the Twitter API that is not compatible with Spring Social Twitter.

Am I the only one with this issue?

Thanks,

Fabian

Technical details

I use the release: 1.1.2.RELEASE

I instantiate the bean via XML (Spring):

<bean id="twitter" class="org.springframework.social.twitter.api.impl.TwitterTemplate">
    <constructor-arg name="consumerKey" value="xxx" />
    <constructor-arg name="consumerSecret" value="xxx" />
    <constructor-arg name="accessToken" value="xxx" />
    <constructor-arg name="accessTokenSecret" value="xxx" />
</bean>

then I use:

twitter.timelineOperations().updateStatus("Hello")
fabianpiau commented 6 years ago

No one is having the same issue?

ghost commented 6 years ago

I'm having the same issue. But for me, it's a new implementation and have never worked before.

fabianpiau commented 6 years ago

Good to know that I'm not the only one. I have decided to use twitter4j with the same credentials and it's working as expected. So there is definitely an issue with Spring Social Twitter. I am keeping it in parallel for the sign in feature though (this one is still working). Hopefully the issue is going to be fixed so I don't need an extra library.

michael-wirth commented 6 years ago

Found the issue. see https://github.com/spring-projects/spring-social/pull/256

michaelwiles commented 5 years ago

Any news on when this will be merged and released?

leonchen83 commented 5 years ago

another workaround is here