-
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
Possible regression in Cypress 9.1: TypeError: data.hasOwnProperty is not a function
#19091
Comments
TypeError: data.hasOwnProperty is not a function
We do also hit this issue in v9.1. After investigation, it only appears in our projects that use See percy/percy-cypress#434 for the percy/cypress issue |
@cexbrayat we so as well! Thanks for the info, this is quite helpful. |
Yes, I am having the same issue but not using
|
Seems like it's a regression in Cypress networking. Smells a lot like #15101 🤨 |
We face the issue but don't use percy-cypress. |
Same issue, also using Percy. Can actually open and run tests using the debugger (cypress open), but running from terminal fails with given error. Downgrade to Cypress 9.0.0 solves the issue for me. |
I spent some time digging in to try and isolate & reproduce. describe("Breaking reproduction", function () {
it("doesn't throw an error when making requests", function () {
cy.then(() =>
Cypress.backend("http:request", {
url: "http:localhost:8001/nothing/here",
method: "POST",
})
);
});
}); This will break with the same stack trace in the OP. |
@Robdel12 what is |
We have the same issue, but we don't use Percy.
|
The code for this is done in cypress-io/cypress#19239, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior
We're running a series of tests against our production application using Cypress. The runner is using the
cypress/browsers:node16.5.0-chrome94-ff93
Docker image. All of our tests fail with a similar stacktrace and none of the lines include our own test code. This suite runs successfully in Cypress 9.0.Here's the failure we get on almost all of the specs in our suite:
Desired behavior
We're just looking to figure out what changed from 9.0 -> 9.1 to cause this issue. We're able to run these tests locally, but they fail in
Test code to reproduce
Our base URL is www.commonlit.org.
Cypress Version
9.1.0
Other
No response
The text was updated successfully, but these errors were encountered: