Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return more data in TweepError #599

Closed
geransmith opened this issue Apr 22, 2015 · 1 comment
Closed

Return more data in TweepError #599

geransmith opened this issue Apr 22, 2015 · 1 comment
Labels
Improvement This is regarding an improvement to an existing feature
Milestone

Comments

@geransmith
Copy link
Contributor

Trying to troubleshoot some response codes I am seeing, along with come up with code to handle some of those codes better. When I am using the except tweepy.TweepError as e to catch TweepErrors, the only thing that comes in as an argument in e is ('Twitter error response: status code = 403',). This was captured via print(e.args)

I'd like to see some extra arguments sent in. Perhaps a response argument so we can look at that directly. In addition, it would be great if the http headers were being sent down in the exception as well. Twitter should be returning some headers to better detail the issue: https://dev.twitter.com/rest/public/rate-limiting

@Harmon758
Copy link
Member

Harmon758 commented Apr 13, 2021

This should now be resolved with cd5f696.

@Harmon758 Harmon758 added the Improvement This is regarding an improvement to an existing feature label Apr 13, 2021
@Harmon758 Harmon758 added this to the 4.0 milestone Apr 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement This is regarding an improvement to an existing feature
Projects
None yet
Development

No branches or pull requests

2 participants