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

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

Open
fabianpiau opened this issue May 14, 2018 · 6 comments
Open

Comments

@fabianpiau
Copy link

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

No one is having the same issue?

@ghost
Copy link

ghost commented Jun 2, 2018

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

@fabianpiau
Copy link
Author

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

Found the issue. see spring-attic/spring-social#256

dittos added a commit to dittos/animeta that referenced this issue Jul 3, 2018
@michaelwiles
Copy link

Any news on when this will be merged and released?

@leonchen83
Copy link

another workaround is here

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

4 participants