hayamiz / twittering-mode

An Emacs major mode for Twitter
http://twmode.sourceforge.net/
545 stars 92 forks source link

HTTP/1.1 401 Unauthorized for GET #90

Closed xmaillard closed 10 years ago

xmaillard commented 10 years ago

Hi,

I recently installed (via git clone) twittering-mode. I used to use it in the past and I wanted to go back to it but it keeps telling this:

Response: HTTP/1.1 401 Unauthorized for GET https://api.twitter.com/1/statuses/home_timeline.json?include_entities=true&count=20

I have successfully entered PIN code at some point:

Open authorization URL with browser? (using `browse-url') (y or n) y Authorization for the account "runslack" succeeded.

Now in the :home timeline (or any other timeline), I receive 401 error messages.

What's wrong ?

GNU Emacs 24.3.50.1 (i386-apple-darwin13.0.0, NS apple-appkit-1265.00) of 2013-11-03 on kcals.intra.maillard.im

f139102d02afb60c937b19c300d90fcd134d438f emacs/site-lisp/twittering-mode (v0.9.0-894-gf139102)

Thank you Xavier

cvmat commented 10 years ago

Do you really see the below message?

Response: HTTP/1.1 401 Unauthorized for GET https://api.twitter.com/1/statuses/home_timeline.json?include_entities=true&count=20

It means that twittering-mode tries to use Twitter API v1.0, which has been retired at 2013-06-11 (see: https://blog.twitter.com/2013/api-v1-is-retired ).

If you have explicitly configured the variable twittering-service-method as twitter, change it to twitter-api-v1.1, which is the default value in the latest version. If you have not configured so, you should confirm whether the latest version is loaded or not. You can confirm the location by M-x locate-library and specifying twittering-mode on Emacs.

xmaillard commented 10 years ago

Ok, got it.

This was due to the fact there were trace of a previous installation caused by ELPA... (how I hate this beast not natural to me :) ).

Sorry for that, I will double-check next time

Regards Xavier