-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'twdige setup' fails #15
Comments
Please run with -d and see what sort of details you can get about it. |
running with -d added no extra info that I could see: twidge -d setup Welcome to twidge. We will now configure twidge for your Please wait a moment while I query the server... ignite done. trying request 1. request 1 failed. attempting workaround. https://twitter.com/oauth/authorize?oauth_token=F7YqOPfg6Wc0P3AG3QmcHLFIcmdZBbdZgViciEWONCc Click Allow when prompted. You will be given a numeric key in your browser window. Copy and paste it here. Authorization key: 1145943 |
I was really hoping there'd be some output right around the 401 error. It's odd that there isn't. The other thing you could try is to remove the https (just use http) and throw a tcpdump across the network so we can see the HTTP headers. |
ok, have done, what should I be looking for? i see very little between 'successfully granted access to twidge!" and the 401, only the GET to GET /statuses/friends_timeline.xml?count=1 HTTP/1.1\r\n - which results in the 401 response... |
Hi, just wanted to let you know that I am having the same difficulty. I am not sure exactly how to do the tcpdump you are asking for, but I would be willing to try if you point me in the direction of some reasonable instructions. |
What version of hoauth do you have installed? If not 0.2.3, can you try it again with that one? |
just tried again after downgrading to hoauth-0.2.3 - same results as with 0.2.5 |
Drat. Well I will do some more testing tomorrow and try to duplicate it. |
Guys, I just can't duplicate this. I'm baffled by what you're seeing. Can you:
|
hi,
with regard to 5) I just dumped the headers, maybe this was wrong, exactly what tcpdump output will help? cheers everso. |
I don't see any headers or anything else after you pasted your key, which are the bits that are relevant. Headers and body both matter. Actually you haven't posted headers either. I'm lloking for every byte sent to or from the twitter servers. |
Also I notice you are on GHC 6.10. Most of the stack used by twidge is currently really only deployed on GHC 6.12. You might also try that version of GHC and look for a change. |
no, I did not post the ouput of tcpdump, i looked through it, and commented above. I did not want to paste a massive cap file. I will try upgrading to ghc 6.12 before tcpdumping again. I was finding it awkward to narrow the twitter hosts down, to try and limit the cap file to only relavent stuff, I'll try again after a ghc upgrade. |
ghc 6.12 is still compiling - but for what it is worth, should I send you a cap file? |
Yes, that would be helpful. |
sent to your email address (i hope) |
I am not certain, but there is a chance that twidge 1.0.5 and the tips here http://wiki.github.com/jgoerzen/twidge/frequentlyaskedquestions will fix the issue for you. Can you try? |
For the record -- ndndn and I looked at his dumps and eventually discovered that the binary I have posted here worked fine for him while the one he compiled didn't. We haven't isolated the difference yet. |
hi, I've installed twidge 1.0.5, gone through that URL, and unfortunately I get the same 401 error attempting to sign up. no errors during build. I am going to try this build on other machines, given your binary worked. |
Hi! |
It is probable that you see the revoked key problem. Try 1.0.6 |
I am still having the exact problem on twidge git lastest, opening the auth link and tried input the pin always failed.
Welcome to twidge. We will now configure twidge for your Please wait a moment while I query the server... ignite done. trying request 1. https://api.twitter.com/oauth/authorize?oauth_token=IdBGiIvOEUUoFteK2wwI4bvcxciPPmY7y8TH0jSVg Click Allow when prompted. You will be given a numeric Authorization key: 7074776 |
and I also tried to use my own api key in ~/.twidgerc $ cat ~/.twidgerc [DEFAULT] oauthconsumerkey=xxx but after input the pin, failed with 401, too. |
seenxu: what version are you using, and did you try my binaries posted here on this site? |
@jgoerzen I am using git latest, and twidge-1.0.6-linux-x86_64.bin works fine for me. |
OK. I am going to need someone to figure out why my builds work while yours don't. Obviously I can't reproduce the problem here... |
@jgoerzen I don't really know how oauth works, only guess, can it be dependency's problem, haskell-curl, haskell-sha, etc? which are caused to generate wrong auth token? |
Hi there, Same issue on setup: CP /home/benjamin/.twidgerc exists? False Welcome to twidge. We will now configure twidge for your Please wait a moment while I query the server... ignite done. trying request 1. |
Hehe, this was my first stop after installing twidge (Ubuntu 10.10, twidge 1.0.2). Anyone after me, https://github.com/jgoerzen/twidge/wiki/frequentlyaskedquestions and http://blog.nelhage.com/2010/09/dear-twitter/ pertains. |
hi,
apologies for no patch, I'm too new to haskell!
This is with Twidge, version 1.0.4.
running 'twidge setup' and following the instructions always ends with:
twidge: user error (HTTP/1.1 401 Unauthorized)
The text was updated successfully, but these errors were encountered: