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.

(uncaught exception) undefined: undefined

See original GitHub issue

Current behavior

Here is the test case that is failing:

it('can create a new equipment model', () => {
    cy.clickOnElementByText('Equipment Models')
    cy.clickOnElementByText('Add model')
    cy.pickElementFromSelect('cy|type', equipmentType, '.ant-select-item')
    cy.get('cy|brand').type(modelBrand)
    cy.get('cy|name').type(modelName)
    cy.get('cy|description').type('description')
    cy.get('cy|cost').type(300)
    cy.contains('OK').click()
    // cy.searchTable(modelName)
    // cy.checkElementContainsValue('.ant-table-tbody', modelName)
  })

My test was not like this originally but I’ve tried to narrow it down as much as possible (by using normal cypress commands instead of custom ones for example).

I keep getting this error: Screenshot 2021-05-14 at 12 21 38 Screenshot 2021-05-14 at 12 22 28 Screenshot 2021-05-14 at 12 24 06

Right now it’s on the command pickElementFromSelect but it also happens on the cy.get ones, it seems like a very random behavior.

I’m not sure where it comes from. There are no other errors in the console during execution and the app just workes fine when I test it manually.

Is there a way to know where this comes from?

Desired behavior

The commands should just be executed.

Versions

  • Using Chrome 90, but also saw this with Edge 90
  • Cypress 7.3.0 (also had it on 7.2.0)
  • MacOS 11.2.3 (It also happens in CI on Ubuntu 18.04.5)

Working versions

My tests seem to run fine on 6.5.0, but not on the latest version

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
ushashircommented, Nov 19, 2022

I am having a similar issue with version 11.0.0

2reactions
titivermeeschcommented, Feb 15, 2022

Having this as well with the latest version, had it as well with v8.3.0. I’m currently stuck at 6.5 because everything else seems to fail the tests instantly

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to debug "uncaught exception: undefined (unknown)" in ...
Line 1 Line 2 Uncaught exception: undefined. then you know that baz() was causing the error. Another way is to use the debugger,...
Read more >
Uncaught exception error : undefined - BMC Communities
Uncaught exception error : undefined. Hi all,. We are running on ITSM 7.6.04 SP3 on linux platform. we are suffering of some problems...
Read more >
1293546 - many "JavaScript error: , line 0: uncaught exception
many "JavaScript error: , line 0: uncaught exception: undefined" in desktop-test-linux64/debug-mochitest-media log. Summary: many "JavaScript error: , line ...
Read more >
Uncaught Error: Call to undefined method Exception
Uncaught Error: Call to undefined method Exception::get_pinterest_code(). Resolved Raquel. (@keuls). 8 months ago. Hi,. I got a heads-up from WordPress ...
Read more >
Handle Service Unavailable and Uncaught Exception in ...
In this video, I have explained how to solve handle service unavailable error and Uncaught Exception in Cypress.
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