In a later comment he writes that it was caused by a problem with hisĪccess token and that he fixed it. I get an 401 error trying to access the timeline. Similar to this comment by hako /issues/215#issuecomment-19359990, On Thu, at 5:13 PM, Ludwig Schmidt-Hackenberg wrote: The library with no problems (btw, today). Your twitter user wot run your own Twitter app? Lately, I have been using Is it the first time that the problem happens? Have you already authorize
get( 'retry-after'))ġ95 196 # if we have a json error here, then it's not an official Twitter API error TwythonAuthError: Twitter API returned a 401 ( Unauthorized), Invalid or expired token pyc in _request( self, url, method, params, api_call) _request( url, method = method, params = params, api_call = url)Ģ25 226 return content / usr / local / lib / python2. api_url % version, endpoint)Ģ23 - > 224 content = self. pyc in request( self, endpoint, method, params, version)Ģ22 url = '%s/%s.json' % ( self.
request( endpoint, params = params, version = version)Ģ31 232 def post( self, endpoint, params = None, version = '1.1'): pyc in verify_credentials( self, ** params)ģ21 322 """ -> 323 return self.get('account/verify_credentials', params=params) 324 325 def update_account_settings(self, **params): /usr/local/lib/python2.7/dist-packages/twython/api.pyc in get(self, endpoint, params, version) 228 def get(self, endpoint, params=None, version='1.1'): 229 """ Shortcut for GET requests via : class: `request`""" 7 / dist - packages / twython / endpoints. TwythonAuthError Traceback ( most recent call last)