Fix error formatting when HTML response#905
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.
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.
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 checksto ensure code compiles and meets standards.pnpm testto check if all tests are passing.Changelog.md.