question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bizarre error when running cypress against a Grafana container - too much recursion

See original GitHub issue

Current behavior

I have cypress running all 4 main browsers supported by Cypress: Electron, Chrome, Firefox, and Edge. I have never run into any issue using Cypress until the past few days where I think this is something to look at, wherewith Firefox and only firefox and only against a Grafana image, I get a bizarre recursion error. My project is not critical because I have it already running with Electron, Chrome, and Edge and I can run it locally without this exception ever occurring when manually interacting with the deployed version. However, it would be great if you could figure out what is going on. I’m not entirely sure if I’m missing something in my tests. I could be, but I’m not sure. This is what I’m getting:

moving-objects-service-root-e2e-firefox-1  |                                                                                                     
moving-objects-service-root-e2e-firefox-1  |   Running:  grafana.cy.ts                                                                  (4 of 10)
moving-objects-service-root-e2e-firefox-1  | 
moving-objects-service-root-e2e-firefox-1  | 
moving-objects-service-root-e2e-firefox-1  |   Grafana Tests
moving-objects-service-root-e2e-firefox-1  |     1) show grafana
moving-objects-service-root-e2e-firefox-1  | 
moving-objects-service-root-e2e-firefox-1  | 
moving-objects-service-root-e2e-firefox-1  |   0 passing (24s)
moving-objects-service-root-e2e-firefox-1  |   1 failing
moving-objects-service-root-e2e-firefox-1  | 
moving-objects-service-root-e2e-firefox-1  |   1) Grafana Tests
moving-objects-service-root-e2e-firefox-1  |        show grafana:
moving-objects-service-root-e2e-firefox-1  |      InternalError: too much recursion
moving-objects-service-root-e2e-firefox-1  |   cyContainsSelector@http://grafana:3000/__cypress/runner/cypress_runner.js:183198:19
moving-objects-service-root-e2e-firefox-1  |   ../driver/node_modules/jquery/dist/jquery.js/</elementMatcher/Sizzle<@http://grafana:3000/__cypress/runner/cypress_runner.js:107360:22
moving-objects-service-root-e2e-firefox-1  |   superMatcher@http://grafana:3000/__cypress/runner/cypress_runner.js:107581:19
moving-objects-service-root-e2e-firefox-1  |   ../driver/node_modules/jquery/dist/jquery.js/</Sizzle.select@http://grafana:3000/__cypress/runner/cypress_runner.js:107760:44
moving-objects-service-root-e2e-firefox-1  |   Sizzle@http://grafana:3000/__cypress/runner/cypress_runner.js:105928:9
moving-objects-service-root-e2e-firefox-1  |   find@http://grafana:3000/__cypress/runner/cypress_runner.js:107959:11
moving-objects-service-root-e2e-firefox-1  |   ../driver/node_modules/jquery/dist/jquery.js/</jQuery.fn.init@http://grafana:3000/__cypress/runner/cypress_runner.js:108074:40
moving-objects-service-root-e2e-firefox-1  |   query@http://grafana:3000/__cypress/runner/cypress_runner.js:184007:10
moving-objects-service-root-e2e-firefox-1  |   $$@http://grafana:3000/__cypress/runner/cypress_runner.js:162691:65
moving-objects-service-root-e2e-firefox-1  |   getElements@http://grafana:3000/__cypress/runner/cypress_runner.js:157945:20
moving-objects-service-root-e2e-firefox-1  |   tryCatcher@http://grafana:3000/__cypress/runner/cypress_runner.js:13012:23
moving-objects-service-root-e2e-firefox-1  |   ../../node_modules/bluebird/js/release/method.js/module.exports/Promise.try@http://grafana:3000/__cypress/runner/cypress_runner.js:10286:29
moving-objects-service-root-e2e-firefox-1  |   resolveElements@http://grafana:3000/__cypress/runner/cypress_runner.js:157995:64
moving-objects-service-root-e2e-firefox-1  |   get@http://grafana:3000/__cypress/runner/cypress_runner.js:158006:14
moving-objects-service-root-e2e-firefox-1  |   now@http://grafana:3000/__cypress/runner/cypress_runner.js:172099:90
moving-objects-service-root-e2e-firefox-1  |   resolveElements@http://grafana:3000/__cypress/runner/cypress_runner.js:158141:19
moving-objects-service-root-e2e-firefox-1  |   tryCatcher@http://grafana:3000/__cypress/runner/cypress_runner.js:13012:23
moving-objects-service-root-e2e-firefox-1  |   ../../node_modules/bluebird/js/release/method.js/module.exports/Promise.try@http://grafana:3000/__cypress/runner/cypress_runner.js:10286:29
moving-objects-service-root-e2e-firefox-1  |   contains@http://grafana:3000/__cypress/runner/cypress_runner.js:158175:62
moving-objects-service-root-e2e-firefox-1  |   ../driver/src/cypress/cy.ts/addCommand/wrapByType/<@http://grafana:3000/__cypress/runner/cypress_runner.js:172022:19
moving-objects-service-root-e2e-firefox-1  |   ../driver/src/cypress/command_queue.ts/runCommand/<@http://grafana:3000/__cypress/runner/cypress_runner.js:170700:15
moving-objects-service-root-e2e-firefox-1  |   tryCatcher@http://grafana:3000/__cypress/runner/cypress_runner.js:13012:23
moving-objects-service-root-e2e-firefox-1  |   ../../node_modules/bluebird/js/release/promise.js/</module.exports/Promise.prototype._settlePromiseFromHandler@http://grafana:3000/__cypress/runner/cypress_runner.js:10947:31
moving-objects-service-root-e2e-firefox-1  |   ../../node_modules/bluebird/js/release/promise.js/</module.exports/Promise.prototype._settlePromise@http://grafana:3000/__cypress/runner/cypress_runner.js:11004:18
moving-objects-service-root-e2e-firefox-1  |   ../../node_modules/bluebird/js/release/promise.js/</module.exports/Promise.prototype._settlePromiseCtx@http://grafana:3000/__cypress/runner/cypress_runner.js:11041:10
moving-objects-service-root-e2e-firefox-1  |   _drainQueueStep@http://grafana:3000/__cypress/runner/cypress_runner.js:7723:12
moving-objects-service-root-e2e-firefox-1  |   _drainQueue@http://grafana:3000/__cypress/runner/cypress_runner.js:7712:24
moving-objects-service-root-e2e-firefox-1  |   ../../node_modules/bluebird/js/release/async.js/</Async.prototype._drainQueues@http://grafana:3000/__cypress/runner/cypress_runner.js:7728:16
moving-objects-service-root-e2e-firefox-1  |   ../../node_modules/bluebird/js/release/async.js/</Async/this.drainQueues@http://grafana:3000/__cypress/runner/cypress_runner.js:7598:14

Desired behavior

I don’t want this exception thrown during the unit tests

Test code to reproduce

It happens while running a grafana container and running the e2e tests against it with firefox:

https://gitlab.com/jesperancinha/moving-objects-service-root/

I have an allow-failure flag on for firefox specifically and so it’s step won’t be marked with an error, but with a warning.

And here is a pipeline result example of this:

https://gitlab.com/jesperancinha/moving-objects-service-root/-/jobs/2823827027

Cypress Version

10.3.0

Other

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
rachelrudermancommented, Aug 17, 2022

Thank you for the update @jesperancinha ! Glad it worked out 😸

0reactions
jesperancinhacommented, Aug 17, 2022

@AtofStryker / @rachelruderman , I’m not 100% sure but cypress/included:10.6.0 seems to have fixed the issue as I’m not getting this specific error related to firefox anymore. I still get random timeouts though, but I’ve explicitly increased them and it seems like all problems have been resolved. I also updated cypress to 10.6.0 locally. On my side, this doesn’t seem to be an issue anymore. Feel free to close this issue or to leave it open. I leave it to you to decide because I’m not sure if you want to make this error clearer when it happens, or if you want to find a way to have cypress deal with it, or if you want to leave it as is.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bizarre error when running cypress against a Grafana container ...
Bizarre error when running cypress against a Grafana container - too much recursion # ... and only against a Grafana image, I get...
Read more >
InternalError: too much recursion in 8.3.x #43154 - GitHub
I open one of our dashboards and am met with An unexpected error happened and see InternalError: too much recursion on Firefox, ...
Read more >
Caching is very slow for Node.JS projects - gitlab-runner
Actually when there are many installed packages a fresh npm install is faster than using the cache which sound actually pretty strange.
Read more >
RHSA-2022:5069 - Security Advisory - Red Hat Customer Portal
Important: OpenShift Container Platform 4.11.0 bug fix and security ... Denial of service using InstrumentHandlerCounter (CVE-2022-21698) ...
Read more >
grafana-7.4.2-lp152.2.13.1.armv7hl RPM
A graph and dashboard builder for visualizing time series metrics. Grafana provides ways to create, explore, and share dashboards and data with teams....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found