Cypress Tests fail with TLS Error when using OWASP Zap as proxy server #26961
Unanswered
james-luther
asked this question in
CI setup
Replies: 1 comment 4 replies
-
@james-luther Did you every determine the root cause for this? Running into it now and came across your post. Thanks! |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm attempting to use OWASP Zap as a proxy server to run all e2e tests through. When running all tests fail reporting the following:
We attempted to make an http request to this URL but the request failed without a response.
We received this error at the network level:
Error: Client network socket disconnected before secure TLS connection was established
Common situations why this would fail:
Here is my cypress info:
❯ npx cypress info
Displaying Cypress info...
Detected 2 browsers installed:
Note: to run these browsers, pass : to the '--browser' field
Examples:
Learn More: https://on.cypress.io/launching-browsers
Proxy Settings:
HTTP_PROXY: http://192.168.3.7:8080
HTTPS_PROXY: https://192.168.3.7:8080
NO_PROXY: localhost
Learn More: https://on.cypress.io/proxy-configuration
Environment Variables: none detected
Application Data: /Users/james/Library/Application Support/cypress/cy/development
Browser Profiles: /Users/james/Library/Application Support/cypress/cy/development/browsers
Binary Caches: /Users/james/Library/Caches/Cypress
Cypress Version: 10.11.0 (stable)
System Platform: darwin (22.5.0)
System Memory: 17.2 GB free 1.22 GB
The ZAP proxy is working as I am able to manually reach and test the endpoints Cypress is testing. When I remove the proxy all tests complete successfully. I'm not sure where I am going wrong.
Beta Was this translation helpful? Give feedback.
All reactions