-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Performance issues to connect to Cypress Dashboard when behind a proxy #28423
Comments
I created a MR which potentially fixes this issue here: #28340 |
We had some reports previously that running Cypress was slower when connected to the Cloud, but we were unable to reproduce it at the time. We'll take a look. |
Any news here? |
We still need to use a workaround to get an immediate (fail) response for the first request:
It works but having a correct solution would still be the preferred way. |
@Roemer Can you provide a repo that would reproduce the issue? For us to run? |
A repo would not be enough, you need a specific network setup to reproduce it. |
This issue is still pending and the corresponding PR was closed. It is almost impossible to create a sample repo / test for the issue as this needs a specific networking setup (which is often used by corporates). If a dev would look at the (now closed PR), it is fairly obvious that is it currently broken. |
This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided. |
The situation is still the same. @Roemer provided a potential fix and the issue, as mentioned, is hard reproduce without the identical network setup. Could someone have a look at his PR and bring it to the finish line, @jennifer-shehane ? It would be very much appreciated so we can remove our workaround. |
Current behavior
When running Cypress behind a corporate proxy, there is always a 1 minute overhead for each Cypress run when connecting to the Cypress Dashboard.
The problem seems to be the "preflight" request, which first tries to connect to
api-proxy.cypress.io
without the system-wide defined proxy and then after 1 minute, it triesapi.cypress.io
with the correct proxy which then responds immediately.Desired behavior
No response
Test code to reproduce
This is a bit harder to reproduce easily. You need a setup where internet access is blocked unless a specific proxy is used, then define this proxy as
http_proxy
andhttps_proxy
environment variable and run Cypress.Cypress Version
13.5.0
Node version
v18.17.1
Operating System
Docker Container (Debian)
Debug Logs
Other
No response
The text was updated successfully, but these errors were encountered: