Closed juan-belmonte closed 1 year ago
Same problem on my tests. Moved back to cy.request
Hey there! Thanks for the report! I will do my best to take a look into this issue this week. If there's a way for you to provide information about the request and response body, it would be very helpful. Apparentl, the plugin is trying to parse something, but throws an error instead. I need to be able to narrow down what exactly is throwing this error and fix it. Thanks in advance!
same problem; weird thing is that other colleagues working on same tests don't have the issue.
I tried fixing the issue but since I had not reproduction, my fix is only a guess on might have caused the issue. Please update to v 2.10.1 and if the issue persists, feel free to reopen the issue and kindly provide me with a reproduction repository or at least an example of response, including response headers that cause this issue.
Alirght I haven’t fixed it, thank you @martin131 for helping me debug this. it seems that there’s an error in how different formats are resolved.
Works for me in the latest version 2.10.3. Thank you!
Whit the new version of the plugin works perfect. Thanks @filiphric !
I confirm that version 2.10.3 also solves the issue for me. Thank you very much, @filiphric. Please excuse I didn't provide any further information before you solved it.
Hello, I have the same error, but I don't know how to solve it, regardless of the version the error continues. @filiphric
From yesterday to today I was racking my brains trying to fix a bug that exists within the node modules of the Cypress plugin and, like, a horrible error that keeps returning a false negative, informing that R is not a function. If this happens to you, there is a very simple way to fix it, Cypress will identify the file that has the bug and you will need to enter the file and modify it by transforming that R into a string. It was the only way I found to handle it, with a lot of help from the university students, in the end the test passed. @filiphric
error:
solution:
Environment
Cypress package version: 12.4.0 Cypress binary version: 12.4.0 Electron version: 21.0.0 Bundled Node version: 16.16.0
cypress-plugin-api
: 2.10.0Issue description
I'm running a set of API tests against different environments:
When I run Cypress against the local environment, everything works as expected. But when running against the dev environment, the plugin crashes:
The plugin fails and Cypress is showing that failure instead of the assertion error (status code mismatch).