-
Notifications
You must be signed in to change notification settings - Fork 58
Fix error formatting when HTML response #905
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
base: main
Are you sure you want to change the base?
Conversation
LGTM just had a small comment |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #905 +/- ##
==========================================
+ Coverage 20.96% 30.85% +9.89%
==========================================
Files 523 534 +11
Lines 22442 23823 +1381
Branches 1198 1423 +225
==========================================
+ Hits 4704 7350 +2646
+ Misses 17494 16346 -1148
+ Partials 244 127 -117
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
(!contentType.includes("application/json") && | ||
!contentType.includes("text/plain")) | ||
) { | ||
return undefined; |
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.
Nit: is the error logged anywhere else? If not could use a log here that it was an unexpected type.
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.
Fair question, which is leading me to change some stuff. So I'm going to hold this PR for after the release.
d4a0b06
to
033dbe6
Compare
Description
If an error response contains HTML content it should be ignored, since there is no consistent way to get useful content out of the HTML.
Validation
Related Issues
Check List
license.
pnpm checks
to ensure code compiles and meets standards.pnpm test
to check if all tests are passing.Changelog.md
.