Error codes in V2 v. V1? #1858
-
In V1 I could do
In V2 the error object doesn't seem to have any properties at all? What am I missing. Looking |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
What error object are you referring to? |
Beta Was this translation helpful? Give feedback.
-
Thanks for the response. This is what I'm seeing:
|
Beta Was this translation helpful? Give feedback.
-
Unfortunately, Twitter's API doesn't actually return an error code or message in the response to Despite what https://developer.twitter.com/en/support/twitter-api/error-troubleshooting says, the response doesn't include an Since there seems to be a relevant message in the |
Beta Was this translation helpful? Give feedback.
Unfortunately, Twitter's API doesn't actually return an error code or message in the response to
Client.create_tweet
with a restrictedin_reply_to_tweet_id
.Despite what https://developer.twitter.com/en/support/twitter-api/error-troubleshooting says, the response doesn't include an
errors
field:{"detail":"You are not allowed to reply to this Tweet as the Tweet author has restricted who can reply to this Tweet.","type":"about:blank","title":"Forbidden","status":403}
This exemplifies the issue with inconsistency in error response structures with Twitter API v2 that I encountered when I reworked exceptions in the library while adding support for Twitter API v2.
Since there seems to be a rel…