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
Regression: clicking a request in the log no longer displays request/response body #17656
Comments
@flotwig any news on this? With fetch, I don't see an option to print the response body at all at the moment (from the cypress ui) |
@Narretz Even after this fix, response bodies will only be available for XHRs and requests intercepted with You are best off using the "Network" tab of the Developer Tools to inspect request/response bodies if your requests do not fit those 2 cases. Due to how Cypress works, it's a bit of additional work to get the request/response bodies for all requests in the browser. Even with that work being done, there could be a negative performance impact that would have to be debugged. I'm not saying it's not possible or important to add what you're asking for, but just that it's a significant chunk of work to add and it's not part of this fix. |
Thanks @flotwig, I didn't realize fetch wasn't logged previously. Still a bit of a bummer that it is still special cased in some circumstances. |
The code for this is done in cypress-io/cypress#18207, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior
After updating to Cypress 8.2.0, request and/or response bodies are no longer displayed in the console when clicking on certain requests in the log. Example:
The selected request has both a request body and a response body, but the information displayed in the console suggests that it has neither. Expanding the
XmlHttpRequest
object does show the response body, but not the request body. This is both misleading and inconvenient when examining requests.Note that this issue does not seem to affect all requests, but those it does affect, it seems to affect consistently.
Desired behavior
In Cypress 8.1.0, the request and response bodies are clearly shown in the console output:
Test code to reproduce
When the test has finished, open the console and click the
POST 200 /index.php
request at the bottom of the runner log. Note that I do not own or control this website. It appears to be flaky sometimes; if that happens, please try again after a few minutes.Cypress Version
8.2.0
Other
No response
The text was updated successfully, but these errors were encountered: