victorious-salesclerk-78076
04/24/2023, 7:12 AMBASE_URL is set correctly to the servers address.
For the CI job I am using the cypress/included (cypress/browsers also works) image. I install npm dependencies and run cypress with cypress run --e2e via npm script. However Cypress fails to verify that the server is running.
I can confirm that the QA server is running and accessible all the time. I attached a screenshot with the relevant GitLab CI job output (sensitive info blurred). The input also shows that that pinging the server before running Cypress is successful. The QA server is only accessible via VPN. Since the container can also ping the server it also should be able to access it. Running the command locally (with VPN enabled) works like a charm.
How can I get Cypress to verify that the server is available?
https://cdn.discordapp.com/attachments/1099955930977808444/1099955931128791091/CleanShot_2023-04-24_at_08.46.072x.png▾
many-airline-45402
04/24/2023, 7:41 AMcurl with something like curl -I https://qa-server? Which version of Cypress are you running?many-airline-45402
04/24/2023, 8:48 AMcurl does not help, then setting DEBUG=cypress:* as an environment variable may give you more information to help debug.victorious-salesclerk-78076
04/24/2023, 10:10 AMping does not show the full picture. I got mislead by it. Tried it with curl and indeed the page can not be accessed from within the container.
So this is not a Cypress issue but more of a networking issue. Just to confirm with you: To access pages behind VPN I need to use HTTP_PROXY, correct?many-airline-45402
04/24/2023, 10:12 AMvictorious-salesclerk-78076
04/24/2023, 10:14 AM