-
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
Request cannot be constructed from a URL that includes credentials: /__cypress/runner/./wasm/mappings.wasm #7481
Comments
We meet the same issue with cypress 4.6.0 when try to use basic auth in url |
Same problem while migrating to 4.6 trying to use
|
Just upgraded cypress to 4.6.0 my tests stopped working because I have basic auth in the url. |
Anyone verified if the issue is still there in 4.7.0? Haven't had time to do it myself but didn't see anything about it in the channels I think. |
I can easily recreate this with the following:
// completely empty spec file
{
"baseUrl": "http://username:password@localhost:4200/"
} Stack traceI see some cypress_runner.js:185076 TypeError: The following error originated from your test code, not from Cypress.
> Failed to execute 'fetch' on 'Window': Request cannot be constructed from a URL that includes credentials: /__cypress/runner/./wasm/mappings.wasm
When Cypress detects uncaught errors originating from your test code it will automatically fail the current test.
Cypress could not associate this error to any specific test.
We dynamically generated a new test to display this failure.
Check your console for the stack trace or click this message to see where it originated from.
at readWasm (http://username:password@localhost:4200/__cypress/runner/cypress_runner.js:133978:12)
at wasm (http://username:password@localhost:4200/__cypress/runner/cypress_runner.js:136683:16)
at http://username:password@localhost:4200/__cypress/runner/cypress_runner.js:134277:14
From previous event:
at Object.initializeSourceMapConsumer (http://username:password@localhost:4200/__cypress/runner/cypress_runner.js:162277:18)
at extractSourceMap (http://username:password@localhost:4200/__cypress/runner/cypress_runner.js:161406:26)
From previous event:
at Object.runScripts (http://username:password@localhost:4200/__cypress/runner/cypress_runner.js:161426:6)
at $Cypress.onSpecWindow (http://username:password@localhost:4200/__cypress/runner/cypress_runner.js:152436:20) WorkaroundDowngrade to 4.5.0 |
The code for this is done in cypress-io/cypress#7555, but has yet to be released. |
Same for 4.7.0 |
This exists in 4.6.0 and 4.7.0, it will be fixed in our next release. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior:
When upgrading to 4.6.0 (worked with 4.4.1 and 4.5.0) we get the following error:
with our Angular (v8) stopped working.
Desired behavior:
Cypress working at all.
Test code to reproduce
in
.npmrc
we haveOur cypress.json file:
with cypress folder placed outside the webapp folder.
The only version in
is v4.6.0.
Versions
Cypress 4.6.0
Doesn't work in either Electron, Chrome or Firefox.
Running in Windows 10.
The text was updated successfully, but these errors were encountered: