Problem with Twitter and Meteor

I get the following error with Meteor (version 0.6.6.3) and clicking on the login button for Twitter.

I2038-06:13:28.670(-8)? Exception while invoking method 'login' Error: Failed to send OAuth1 request to https://api.twitter.com/oauth/request_token. failed [401] Failed to validate oauth signature and token I2038-06:13:28.673(-8)? at OAuth1Binding._call (packages/oauth1/oauth1_binding.js:143) I2038-06:13:28.674(-8)? at OAuth1Binding.prepareRequestToken (packages/oauth1/oauth1_binding.js:27) I2038-06:13:28.675(-8)? at Oauth._requestHandlers.(anonymous function) (packages/oauth1/oauth1_server.js:21) I2038-06:13:28.676(-8)? at middleware (packages/oauth/oauth_server.js:105) I2038-06:13:28.677(-8)? at packages/oauth/oauth_server.js:78 

Anyone have an idea how to solve this problem?

thanks

+6
source share
2 answers

Okay, so after I pushed around for a long time, I finally made money. Here is a workaround I found that could hope to help others who received a similar error.

Customization

  • Local debian server working with meteorite with IP address 192.168.2.100. It can be a virtual box, as in my case.
  • You get access to the meteorite application with your navigator 192.168.2.100{000 from a Windows computer.
  • Connecting via Twitter does not work.

Decision

  • In your windows host file, set your localhost as 192.168.2.100 instead of 127.0.0.1
  • In the configuration of the Twitter application, enter for the callback http://192.168.2.100:3000/_oauth/twitter?close twitter http://192.168.2.100:3000/_oauth/twitter?close
  • You may have to wait or restart from scratch.
+3
source

I had the same problem caused by manually deleting and setting loginServiceConfiguration incorrectly. If you are not using the configuration tool, make sure you insert consumerKey and not clientId .

 Accounts.loginServiceConfiguration.remove({ service: "twitter" }); Accounts.loginServiceConfiguration.insert({ service: "twitter", consumerKey: "...", secret: "..." }); 
+7
source

Source: https://habr.com/ru/post/958117/


All Articles