Skip to content

fix: non-JSON response body display for upload errors#29801

Merged
cacieprins merged 11 commits into
developfrom
cacie/fix/upload-error-response-body
Jul 12, 2024
Merged

fix: non-JSON response body display for upload errors#29801
cacieprins merged 11 commits into
developfrom
cacie/fix/upload-error-response-body

Conversation

@cacieprins
Copy link
Copy Markdown
Collaborator

@cacieprins cacieprins commented Jul 3, 2024

  • Closes

Additional details

Upload endpoints can return response bodies that are not JSON when an HTTP error occurs. This PR ensures we properly parse response bodies, display them, and include them in the error report sent to the Cloud API.

Steps to test

How has the user experience changed?

Before:
Screenshot 2024-07-03 at 11 46 20 AM
After:
Screenshot 2024-07-03 at 11 45 55 AM

PR Tasks

@cacieprins cacieprins changed the base branch from develop to cacie/fix/no-reuse-readstream July 3, 2024 15:47
Comment thread system-tests/__snapshots__/record_spec.js Outdated
Base automatically changed from cacie/fix/no-reuse-readstream to develop July 8, 2024 13:30
@cacieprins cacieprins force-pushed the cacie/fix/upload-error-response-body branch from 462b21f to 3caeda0 Compare July 8, 2024 14:23
@cacieprins cacieprins marked this pull request as ready for review July 8, 2024 14:26
@cacieprins cacieprins requested review from AtofStryker and mschile July 8, 2024 14:26
Comment thread cli/CHANGELOG.md
Comment thread packages/server/lib/cloud/artifacts/upload_artifacts.ts Outdated
@cypress
Copy link
Copy Markdown

cypress Bot commented Jul 11, 2024

Passing run #56115 ↗︎

0 232 4 0 Flakiness 0

Details:

fix system test for single upload error vs aggregate
Project: cypress Commit: 95f21e6829
Status: Passed Duration: 12:14 💡
Started: Jul 12, 2024 6:15 PM Ended: Jul 12, 2024 6:28 PM

Review all test suite changes for PR #29801 ↗︎

Copy link
Copy Markdown
Collaborator

@mschile mschile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall! Just added one small suggestion.

@cacieprins cacieprins merged commit 3c28109 into develop Jul 12, 2024
@cacieprins cacieprins deleted the cacie/fix/upload-error-response-body branch July 12, 2024 18:52
@cypress-bot
Copy link
Copy Markdown
Contributor

cypress-bot Bot commented Jul 16, 2024

Released in 13.13.1.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v13.13.1, please open a new issue.

@cypress-bot cypress-bot Bot locked as resolved and limited conversation to collaborators Jul 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants