-
-
Notifications
You must be signed in to change notification settings - Fork 70
fix: check for ParseError first after server response #332
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
Conversation
Thanks for opening this pull request!
|
@Climbatize @vdkdamian can you check if this branch solves the problem? Also check if all other functionality works as normal. I'll take a further look later... |
Codecov Report
@@ Coverage Diff @@
## main #332 +/- ##
==========================================
- Coverage 85.11% 85.03% -0.09%
==========================================
Files 114 114
Lines 12116 12118 +2
==========================================
- Hits 10312 10304 -8
- Misses 1804 1814 +10
Continue to review full report at Codecov.
|
I'll adopt to this branch now, and let you know in the next few days if any of the testers experienced issues. |
Tested this on all of the playground examples and it works along with not disturbing other code. The change makes sense logically and should be fine to add as |
@cbaker6 I currently haven't experienced any issues with the change either. LGTM |
@vdkdamian thanks for checking! |
New Pull Request Checklist
Issue Description
Currently tries to decode response as object before checking for error.
Related issue: #313
Approach
Always check if an error can be decoded first.
TODOs before merging