Skip to content
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

Returns application/json instead of text/html #69

Open
selfagency opened this issue Jun 14, 2022 · 1 comment
Open

Returns application/json instead of text/html #69

selfagency opened this issue Jun 14, 2022 · 1 comment

Comments

@selfagency
Copy link

For some reason when using this plugin, I get the following error in my tests:

CypressError: `cy.visit()` failed trying to load:  http://localhost:3000/search  The `content-type` of the response we received from your web server was:    > `application/json`
@RVledder
Copy link

RVledder commented Jul 11, 2022

I am facing the same issue.

My guess is that we are using cy.visit to request an html page. However, the response header's content-type is set to "application/json" where instead it should be "text/html".

I'm not sure yet why this issue is only occurring when using cypress-autorecord.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants