You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Without cy2 this works fine, but in cy2 this throws the following error:
TypeError: Protocol "https:" not supported. Expected "http:"
at new NodeError (node:internal/errors:371:5)
at new ClientRequest (node:_http_client:158:11)
at Object.request (node:http:96:10)
at runProxyChain (/builds/team/group/project/node_modules/cy2/src/proxy-chain.ts:13:6)
at Server.<anonymous> (/builds/team/group/project/node_modules/cy2/src/proxy.ts:93:7)
at Server.emit (node:events:526:28)
at onParserExecuteCommon (node:_http_server:727:14)
at onParserExecute (node:_http_server:641:3)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
We encountered an unexpected error talking to our servers.
We will retry 3 more times in 30 seconds...
The server's response was:
RequestError: Error: A connection to the upstream proxy could not be established: connect ECONNREFUSED 127.0.0.1:45621
error Command failed with exit code 1.
(Complete logs below)
Expected behavior
Should not throw an error and reply with the fetched data.
* fix: use correct protocol for upstream requests
- Resolve#54
- Use https or http for connecting to upstream proxy
- Warn if there's mismatch between env var and the protocol
* chore: prominent warnings and errors
* fix: use correct protocol for upstream requests
- Resolve#54
- Use https or http for connecting to upstream proxy
- Warn if there's mismatch between env var and the protocol
* chore: prominent warnings and errors
Before opening, please confirm:
Environment information
cy2
v4.0.3
cypress
v12.3.0
Describe the bug
For simulating an image API in a cypress test I want to use https://picsum.photos/200/200 which is used in an
cy.intercept
to simulate the backend response.Something like this:
Without
cy2
this works fine, but in cy2 this throws the following error:(Complete logs below)
Expected behavior
Should not throw an error and reply with the fetched data.
Command and Setup
command:
yarn cy2 run --parallel --record --key project --ci-build-id project-${CI_PIPELINE_ID} --browser chrome
provider:
self hosted, used
CYPRESS_API_URL
andHTTP_PROXY
env variablesFull log and debug output
full log exceeds the maximum comment length of 65536 characters. So this is only the last part before the error.
The text was updated successfully, but these errors were encountered: