Skip to content
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: non-JSON response body display for upload errors #29801

Merged
merged 11 commits into from
Jul 12, 2024

Conversation

cacieprins
Copy link
Contributor

@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
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
Copy link

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
Contributor

@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
82 of 83 checks passed
@cacieprins cacieprins deleted the cacie/fix/upload-error-response-body branch July 12, 2024 18:52
@cypress-bot
Copy link
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