Getting OAuth error when using updateStatusWithMedia (Fixed) #122
Labels
No labels
Bug
Enhancement
Feature Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: code/twython#122
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I get the following error when using updateStatusWithMedia:
{"request":"/1/statuses/update_with_media.json","error":"Could not authenticate with OAuth."}
The updateStatus endpoint works fine, but updateStatusWithMedia generates an OAuth exception.
What version of requests are you using?
Sent from my iPhone
On Oct 15, 2012, at 6:06 PM, genghisu notifications@github.com wrote:
And what version of Twython as well?
Sent from my iPhone
On Oct 15, 2012, at 6:06 PM, genghisu notifications@github.com wrote:
requests - 0.14.1
Twython - 2.4.0 (git cloned on 10/15/2012)
Try cloning from my 2.5.0 branch (https://github.com/michaelhelmick/twython/zipball/2.4.0)
I know it says 2.4.0 cause I'm a dummy and messed up haha
But clone mine, and let me know if it works there! :)
Have the same problem. updateStatusWithMedia gives OAuth error below. updateStatus and updateProfileImage work fine.
TwythonError: u'Unauthorized: Authentication credentials were missing or incorrect. -- Could not authenticate with OAuth.'
I have seen the other threads regarding issue with requests but I have latest version.
requests==0.14.1
simplejson==2.6.2
twython==2.4.0
@marks7g Like I asked @genghisu
Have done. Still the same. Anything else I can check?
Also maybe a stupid question but how can I be sure I am running your 2.5.0 branch?
After you pull a clone. Go into the directory and then run python and execute:
Sent from my iPhone
On Oct 16, 2012, at 3:50 PM, marks7g notifications@github.com wrote:
In [1]: from twython import twython
In [2]: twython.version
Out[2]: '2.4.0'
I removed the twython I had with
downloaded yours from link and ran
On Tue, Oct 16, 2012 at 8:59 PM, Mike Helmick notifications@github.comwrote:
I'm testing now and it doesn't work with my release either. Working on a fix for this. Will let you know if I come up with anything.
Thanks. Much appreciated.
On Tue, Oct 16, 2012 at 9:36 PM, Mike Helmick notifications@github.comwrote:
It seems to be a problem with
requestswhen sending thedataandfileskwargs. Hrm.I have the same problem - we once solved it with this hack: https://github.com/ryanmcgrath/twython/issues/113
but now i updated the lib and i have the same error again ..
@michaelhelmick have you been able to get updateStatusWithMedia working by any chance?
I'm using requests 0.14.1 and twython 2.4.0, both from pypi, and I'm having the same issue as everyone above.
I've tried several different things using requests directly, but haven't had any luck :-\
@danxshap Try downgrading to
requests0.14.0pip install -I requests==0.14.0That worked for me.
@michaelhelmick totally works - you're the man! just curious, any idea what the problem is in 0.14.1?
Not sure, the issue is in 0.14.2 as well.
I opened an issue here: https://github.com/kennethreitz/requests/issues/896
But nobody has responded yet.
used the
pip install -I requests==0.14.0
command and now it works ! thx thx
Well, @michaelhelmick knocked this out of the park, so we can go ahead and close this now.