"Error: incorrect header check" Cypress 6.2.1
See original GitHub issueI made a request using Cypress 6.3.0 and received an error.
I can make this same request using Postman or curl with no issues.
Current behavior
I make a request and receive the following error: Error: incorrect header check
Desired behavior
200 OK should be returned as a response
Test code to reproduce
cy.request('https://www.cmmiinstitute.com/');
Versions
Cypress 6.3.0 Windows 10 Enterprise
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Marc Myers on Twitter: "@Cypress_io I was hoping this would fix the ...
@Cypress_io · github.com. "Error: incorrect header check" Cypress 6.2.1 · Issue #14540 · cypress-io/cypress. I made a request using Cypress 6.3.0 and ...
Read more >Changelog - Cypress Documentation
Fixed as issue where browser-skipped tests were incorrectly recorded to the Dashboard which resulted in the Dashboard marking the test as "new" or...
Read more >Incorrect header check error - node.js - Stack Overflow
I am passing my own gzipped url in the code. Any help will be really useful. Thanks. node.js · http · request ·...
Read more >cypress-io/cypress - Gitter
in cypress error says unidentified is exist, is visibletc. i tried setup again cypress-if, update node, downgrade node.
Read more >Cypress cy.intercept Problems - Gleb Bahmutov
Thus I test how the application handles 404 or 500 errors rather than a generic "Server is not responding" network error. 1 2...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Since the problem seems to be in gzipped response, let’s disable gzip using https://on.cypress.io/request options
Working!
Final solution
If
cy.request
is getting error “incorrect header check” usegzip: true
optionCan we have a reproducible example to debug this?