abdelrahman93 / python-twitter

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

TwitterHTTPError #228

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I'm on version 0.8.2

When I use the .trends() method, I get the error below:

ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (10, 0))

---------------------------------------------------------------------------
TwitterHTTPError                          Traceback (most recent call last)
/root/<ipython-input-8-7403d0e144cc> in <module>()
----> 1 x = twit.trends()

/usr/local/lib/python2.6/dist-packages/twitter/api.pyc in __call__(self, 
**kwargs)
    163
    164         req = urllib_request.Request(uriBase, body, headers)
--> 165         return self._handle_response(req, uri, arg_data)
    166
    167     def _handle_response(self, req, uri, arg_data):

/usr/local/lib/python2.6/dist-packages/twitter/api.pyc in 
_handle_response(self, req, uri, arg_data)
    178                 return []
    179             else:
--> 180                 raise TwitterHTTPError(e, uri, self.format, arg_data)
    181
    182 class Twitter(TwitterCall):

TwitterHTTPError: Twitter sent status 404 for URL: 1/trends.json using 
parameters: ()

----- snip ------

Original issue reported on code.google.com by makobu.mwambiriro@gmail.com on 20 Mar 2012 at 10:14

GoogleCodeExporter commented 8 years ago
Stephenwartley46@gmail.com

Original comment by stephenw...@gmail.com on 16 Apr 2012 at 5:02