-
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
[ERR_INVALID_CHAR]: Invalid character in header content ["x-cypress-file-path"] #25839
Comments
@Nutcracker52 what is the value of |
I can confirm at least special characters in paths can cause this problem. (OS: macOS 12.6.3; cypress version: 10.11.0) |
@umajho, I attempted a recreation here: https://github.com/mjhenkes/issue-25839 but i think my one test is too simplistic. Which tests do you see failing in easy-markdown-editor? |
Cypress just exited while running the first test it picked.
another try:
Updating cypress to the latest version doesn't work as well:
|
@mjhenkes I wasn't able to reproduce with your reprod but I was able to reproduce with |
I had the same error, it turned out I forgot to initialize the environment variables on the command line that are used in cypress.config.ts |
I had the same error In my case, it happened in the process of loading the local html file. I didn't understand exactly why, The test could be executed normally by solving as follows. Before <img
src="./assets/image/coffee/제주_비저링_콜드_브루.jpeg"
width="200"
height="200"
/> After <img
src="./assets/image/coffee/coffee1.jpeg"
width="200"
height="200"
/> You can check this PR hamsurang/functional-coding-nutshell#12 |
If somebody still faces such issue, solution might be to encode url, before giving it to Cypress. |
* fix: Encode fileServerFolder to fix #25839 * fix: Encode fileServerFolder to fix #25839 add changelog * update unit tests * adjust CHANGELOG location * Update packages/server/test/unit/config_spec.js * Fix changelog entry placement * Fix some bugs to pass the test case * maintain a test case * Fix changelog entry * added integration test and updated to use encodeURI * Update cli/CHANGELOG.md --------- Co-authored-by: Jennifer Shehane <[email protected]> Co-authored-by: Jennifer Shehane <[email protected]> Co-authored-by: Matt Schile <[email protected]> Co-authored-by: Matt Schile <[email protected]>
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior
#25273 related to this closed issue and I can confirm this is happening and it's pretty annyoing.
Error Code pops
test I am trying to run
I am reading emails from an API and check that email has been received and then email contains a link and click that link
Desired behavior
Cypress shouldn't throw any errors while test is running. This completely crashes Cypress and I have to run tests again.
To avoid the error I had to add cy.visit command as first line to the code. which is not necessary.
Test code to reproduce
please use the given code above.
get email is a function that we designed to get emails from an api.
I cannot share it.
Cypress Version
8.3.1
Node version
16.19.0
Operating System
Windows 11
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: