-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Cy.visit() does not load page #3941
Comments
What is the url you are trying to visit ? Could you share the line of code ? |
The tutorial URL. https://example.cypress.io. It lags and then times out. on the command line i can see a HEAD 500 error. HEAD / 500 48.458 ms - - |
This works fine for me (v3.2.0)
|
right, it might be a proxy issue. as it returns an error saying that Page could not load |
The pages load in the browser ? i mean, outside cypress. i'm seeing this logs too
but it's working anyway |
The page doesnt load on my browser. I get a 'page could not load" message |
Those @chris2kus31 if you're behind a corporate proxy, this is a known issue with visiting HTTPS domains behind a proxy and will be fixed in the upcoming Cypress 3.3.0 release. Here is the relevant issue, note that the workarounds listed here will not enable you to test HTTPS-hosted websites (including example.cypress.io): #1469 Closing as duplicate of #1459 |
@flotwig so there is no workaround for this right now? |
@chris2kus31 Sadly not. However, this limitation only applies to https-hosted websites. If you're testing something on http://localhost, it won't go through your proxy and it'll work fine. If you're testing another http site (say http://example.com), then the workaround of setting the HTTP_PROXY environment variable as described in #1469 will allow Cypress to use your proxy to access that website pre-3.3.0. Other than that, you'll have to wait for 3.3.0 to use Cypress behind a corporate proxy. |
@flotwig so if i am testing say this local site https://local-giving.kcmhq.org/ it will failed to load right now? |
@chris2kus31 it depends. If you need to go through your corporate proxy to access this site, then no, it will not work because Cypress before 3.3.0 does not support proxies for https websites. If it's an https site on localhost, it should work fine since it doesn't try to use your corporate proxy. |
Got it. Thank you @flotwig |
@flotwig is there an estimate as to when 3.3 will be release? |
@chris2kus31 No, but we're working to get it out very soon. |
Try to do this, i managed to get cypress 3.3.0 behind a corporate firewall like this: PROXY_HTTP="http://your_corp_proxy.xxx.com:3128"
PROXY_HTTPS="https://your_corp_proxy.xxx.com:3128"
NO_PROXY="localhost,undefined,domain_which_works_without_proxy.com" npx cypress open I've added that |
For mine I had to remove from the top of the app const { cy } = require("date-fns/locale"); |
i have similar issue, it was working few days ago and now i am getting below error, any helpmy code })
|
how to solve it this issue |
Current behavior:
Upon running cy.visity() and inputing a URL, the request times out.
Desired behavior:
Trying to run a simple cy.visit() command but unable to
Page does not load and hangs until it times out. On the command line there is a Head 500 error
Steps to reproduce: (app code and test code)
Versions
running 3.1.5 as i am having issues with 3.2
Linux
The text was updated successfully, but these errors were encountered: