-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Plugin fails with "a.replace is not a function" #109
Comments
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. |
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. 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).
The text was updated successfully, but these errors were encountered: