-
Notifications
You must be signed in to change notification settings - Fork 28
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
Fix local error messages #865
Conversation
It should be OK, but I'll add it to my own installation. And I will try to catch the error condition. |
Thanks! Let me know :) would be good to catch some JSON files so we can eventually add tests. |
@@ -809,7 +809,7 @@ async def check_response(response: ClientResponse) -> None: | |||
) from error | |||
|
|||
if result.get("errorCode"): | |||
message = result.get("error").strip("'") | |||
message = result.get("error").strip('"') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we don’t add any test, it would be nice to add as comment an example of why we trip the ".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree! Preferably both 😄.
It looks like this one is the only deviation:
|
I've tested some issues with both
Note also that
|
Thanks @shypike. Do you know which HTTP code these requests have? |
I've added the error codes to the original message, |
Follow up on #843 (comment).
@shypike can you verify if this is the right fix?