Code Monkey home page Code Monkey logo

Comments (12)

cexbrayat avatar cexbrayat commented on June 13, 2024 1

@Robdel12 This appears to be related to percy: if I remove all the related code to percy, it works fine again in my case (on several projects). We do use TS as well, both TS 4.4 and TS 4.5.

from percy-cypress.

cexbrayat avatar cexbrayat commented on June 13, 2024

Just ran into the same issue. Note that it works with Cypress v9.0, but not with v9.1

from percy-cypress.

Robdel12 avatar Robdel12 commented on June 13, 2024

๐Ÿ‘‹๐Ÿผ I'm not at my computer to debug this yet but it feels like a red herring that there's nothing Percy related in that stack trace. Why is there bluebird in the stack trace (really old promise dep)? ๐Ÿคจ

I see "typescript": "4.5.2", in your provided packag.json. Given the example app works fine with Cypress v9, I suspect this is actually a typescript + Cypress problem (and maybe + Percy too, there's also this annoying TS bug: #430)

from percy-cypress.

Robdel12 avatar Robdel12 commented on June 13, 2024

This sure does smell a lot like cypress-io/cypress#15101 & #325

from percy-cypress.

cexbrayat avatar cexbrayat commented on June 13, 2024

It does. I also had that issue in the past, but this was fixed and had not happened again since.

from percy-cypress.

cexbrayat avatar cexbrayat commented on June 13, 2024

FYI someone opened a similar issue on Cypress cypress-io/cypress#19091

from percy-cypress.

atmullan avatar atmullan commented on June 13, 2024

Also getting this issue after upgrade to 9.1.0, I have percy enabled.

from percy-cypress.

atmullan avatar atmullan commented on June 13, 2024

Downgrading to Cypress 9.0.0 Resolves the issue for me. Note: Not using Typescript

from percy-cypress.

geoffharcourt avatar geoffharcourt commented on June 13, 2024

We're seeing error this happen, but only in specs that have involve @percy/cypress, and only as of Cypress 9.1.

from percy-cypress.

Robdel12 avatar Robdel12 commented on June 13, 2024

My guess is Cypress had a regression in their networking stack. Percy's SDK POST's the DOM snapshot to local Percy server and this was an issue in Cypress in the past (with almost the exact same error message). People are reporting seeing the same issue without Percy and the stack trace doesn't have any Percy code in it.

Looks like we'll have to wait for Cypress to patch

from percy-cypress.

Robdel12 avatar Robdel12 commented on June 13, 2024

I added a comment to the Cypress issue, but this doesn't appear to be a Percy issue. Staying on v9.0.x will stay away from the issue (I believe) while this is looked at by the Cypress folks. Here's the comment I left on their issue:

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 (https://github.com/percy/example-percy-cypress/runs/4400801282?check_suite_focus=true)

from percy-cypress.

Robdel12 avatar Robdel12 commented on June 13, 2024

Upgrading to v9.1.1 of cypress should solve this cypress-io/cypress#19091

from percy-cypress.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.