Closed lucas9122 closed 3 weeks ago
Hey :)
I'm going to need a reproduction to help debug this.
I also notice you're not on the latest version of Nx. Nx 19 shipped with a lot of bug fixes and stability improvements.
It would be worth trying to upgrade to latest Nx (19.5.0 at time of writing) also to see if this helps.
This issue has been automatically marked as stale because no reproduction was provided within 7 days. Please help us help you. Providing a repository exhibiting the issue helps us diagnose and fix the issue. Any time that we spend reproducing this issue is time taken away from addressing this issue and other issues. This issue will be closed in 21 days if a reproduction is not provided. If a reproduction has been provided, please reply to keep it active. Thanks for being a part of the Nx community! 🙏
Current Behavior
When the POST request is not mocked in cypress tests, it results in a 404 error. This sometimes triggers an endless loop with constant redirection. Each iteration adds "?/" to the endpoint address, causing the test to stuck due to repeated redirections. It is only related to POST requests and the issue is not deterministic, does not happen every time. GET requests does not cause such problems.
Expected Behavior
When the POST request is not mocked, the test should handle the 404 error without entering an endless loop. The test should either fail with a clear error message or continue running without causing constant redirections
GitHub Repo
No response
Steps to Reproduce
nx e2e-ci my-app-e2e
Nx Report
Failure Logs
No response
Package Manager Version
No response
Operating System
Additional Information
cypress.config.ts
project.json