Python Forum
Twitter authentication failure with Tweepy
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Twitter authentication failure with Tweepy
#2
I have dug deeper into this and enabled debug output in Tweepy. But still I am puzzled.

On my MAC (OK)
send: b'GET /1.1/account/verify_credentials.json HTTP/1.1\r\nAccept-Encoding: identity\r\nHost: api.twitter.com\r\nAuthorization: OAuth oauth_nonce="82970471272089437891549199975", oauth_timestamp="1549199975", oauth_version="1.0", oauth_signature_method="HMAC-SHA1", oauth_consumer_key="<key>", oauth_token="<token>", oauth_signature="Rcq0xG7b1icM4WOuWqFG9HkXm4s%3D"\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
On my NAS (not OK)
send: b'GET /1.1/account/verify_credentials.json HTTP/1.1\r\nAccept-Encoding: identity\r\nHost: api.twitter.com\r\nAuthorization: OAuth oauth_nonce="182485988168612436021549199916", oauth_timestamp="1549199916", oauth_version="1.0", oauth_signature_method="HMAC-SHA1", oauth_consumer_key="<key>", oauth_token="<token>", oauth_signature="w%2F.nkkBk8Ic5kfvfDhM94%2F.cj4qq8%3D."\r\n\r\n'
reply: 'HTTP/1.1 401 Authorization Required\r\n'
The difference between both requests are nonce, timestamp and signature. But that looks natural to me.
Reply


Messages In This Thread
Twitter authentication failure with Tweepy - by HSB - Feb-03-2019, 08:13 AM
RE: Twitter authentication failure with Tweepy - by HSB - Feb-03-2019, 01:30 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  saml2 idp sso authentication tiagome 1 2,147 Apr-08-2022, 02:38 PM
Last Post: snippsat
  About Twitter Scraping ahmetcakar 1 1,805 Nov-14-2020, 01:43 AM
Last Post: Larz60+
  Trying to automate tweets without Twitter API HowardHarkness 10 6,431 Jan-07-2019, 01:34 AM
Last Post: HowardHarkness
  Requests login failure test 10 9,577 Sep-13-2018, 08:48 AM
Last Post: test

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020