twitter.error.TwitterError: [{'code': 34, 'message': 'Sorry, that page does not exist.'}]
See original GitHub issueWhenever I make a request with the api to fetch Direct Messages api.GetDirectMessages(), it always throws me a twittererror with the message “Sorry, that page does not exist.”
Traceback:
Traceback (most recent call last):
File "C:/Users/neela/Desktop/Programs/python projects/Mine/DM Storage/login.py", line 13, in <module>
logging.info(api.GetDirectMessages())
File "C:\Program Files\Python36\lib\site-packages\twitter\api.py", line 2937, in GetDirectMessages
data = self._ParseAndCheckTwitter(resp.content.decode('utf-8'))
File "C:\Program Files\Python36\lib\site-packages\twitter\api.py", line 4908, in _ParseAndCheckTwitter
self._CheckForTwitterError(data)
File "C:\Program Files\Python36\lib\site-packages\twitter\api.py", line 4928, in _CheckForTwitterError
raise TwitterError(data['errors'])
twitter.error.TwitterError: [{'code': 34, 'message': 'Sorry, that page does not exist.'}]
I tried looking through #592 , but it was closed at Nov. 2018, and the new endpoints should have been implemented. There have been four months since the closure, and how has there not been enough time to update the API endpoints?
Issue Analytics
- State:
- Created 5 years ago
- Comments:15
Top Results From Across the Web
Sorry, that page does not exist code 34 - Stack Overflow
You may be trying to access the information of users who may have deleted their account/tweet/comment. Thus, this error.
Read more >twitter.error.TwitterError: [{'message': 'Sorry, that page does not ...
I'm getting a twitter.error.TwitterError: [{'code': 34, 'message': 'Sorry, that page does not exist'}] on python 3.5 using ...
Read more >"Sorry, that page does not exist." Code 34 error
Hello, I'm stuck with the “Sorry, that page does not exist” error, returning a Code 34 in the middle of posting to the...
Read more >Twitter API Response Codes & Error Support - Twitter Developer
Different error codes indicate different reasons for an error. The Twitter API attempts to return appropriate HTTP status codes for every request.
Read more >Twitter Page In Uiwebview Redirects To 'Sorry, That ... - ADocLib
Q: Twitter links won't load properly in the internal RiF browser! tl;dr: ... {"errors":[{"message":"Sorry, that page does not exist","code":34}]} SOAP is a ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi guys, the Error is caused by the old version of pip package, in the pip version the function GetDirectMessages uses an old URL, you can change that for the new url. Step 1: find api.py file run pip show python-twitter and see the path
Step 2: find the old url in api.py, line 2922
Step 3: change that line with url = ‘%s/direct_messages/events/list.json’ % self.base_url
This plus
return_json=Truemade it work for me