gfcapalbo / python-twitter

Automatically exported from code.google.com/p/python-twitter
Apache License 2.0
0 stars 0 forks source link

using certain methods gives me errors.. #71

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
im fully authenticated..

following methods i have tried and work, 

api.GetUserTimeline()

api.PostUpdate()

the following fail:

api.PostDirectMessage()

api.GetStatus()

i get the following error:

traceback (most recent call last):
  File "urlLoader.py", line 103, in <module>
    doTwitter()
  File "urlLoader.py", line 51, in doTwitter
    doCheckStatus()
  File "urlLoader.py", line 54, in doCheckStatus
    status = api.GetStatus(0)
  File "build/bdist.linux-i686/egg/twitter.py", line 1011, in GetStatus
  File "build/bdist.linux-i686/egg/twitter.py", line 1435, in _FetchUrl
  File "/usr/lib/python2.6/urllib2.py", line 389, in open
    response = meth(req, response)
  File "/usr/lib/python2.6/urllib2.py", line 502, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.6/urllib2.py", line 427, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.6/urllib2.py", line 361, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.6/urllib2.py", line 510, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 404: Not Found

Original issue reported on code.google.com by Richdel1...@gmail.com on 14 May 2009 at 11:18

GoogleCodeExporter commented 9 years ago
Are you rate limited? That happens to me on all methods once I have exceeded
Twitter's rate limiting. Otherwise, I can't reproduce your problem.
http://apiwiki.twitter.com/Rate-limiting

Original comment by ga...@tunnel19.com on 14 May 2009 at 11:39

GoogleCodeExporter commented 9 years ago
garthpatil: Thanks for the link, bu i don't think my problem is rate-limiting 
as 
The only thing ive actually done with the API is change my status and list a 
certain
user recent tweets..

As far as i can see from the documentation, this does not change ur rate 
limiting?

Original comment by Richdel1...@gmail.com on 15 May 2009 at 10:52

GoogleCodeExporter commented 9 years ago
According to http://apiwiki.twitter.com/HTTP-Response-Codes-and-Errors
# 400 Bad Request: The request was invalid.  An accompanying error message will
explain why. This is the status code will be returned during rate limiting.
# 404 Not Found: The URI requested is invalid or the resource requested, such 
as a
user, does not exists.

So, it should be something wrong with url. Did you pass correct parameter, a 
status id?
http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses%C2%A0show

Original comment by livibet...@gmail.com on 27 May 2009 at 11:00

GoogleCodeExporter commented 9 years ago
i am also getting the same error but with a diff response code i.e http 403 
please
tell me how to remove this error!!

Original comment by heymayan...@gmail.com on 4 Jun 2010 at 6:10