Skip to content

Conversation

@knu
Copy link
Contributor

@knu knu commented Dec 5, 2017

They changed the message again after #875, and the latest message I can observe in my Twitter API failure log is "You have already retweeted this Tweet." The only difference is the last word which got capitalized. (sigh...)

So, I think it's time to drop the message-to-error table based on exact string match.

@andypiper
Copy link

In general I'd avoid doing exact string matching on error messages - that's why the API returns error code values as well (they are intended to be immutable). Note that the API response codes page is now here. I'll go ahead and add error 327 over there now for completeness.

@knu
Copy link
Contributor Author

knu commented Dec 6, 2017

That's a nice find! It's certainly better to use the machine-readable info whenever available.

@sferik sferik merged commit c9bf100 into sferik:master Jun 12, 2018
@knu knu deleted the update_forbidden_messages branch June 13, 2018 04:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants