Skip to content

[BUG] Exception has occurred: TypeError TypeError: Cannot read property 'split' of undefined #2271

@pipi1007

Description

@pipi1007

Crash after a few requests:

Exception has occurred: TypeError
TypeError: Cannot read property 'split' of undefined
at Object.exceptionToError (C:\code\owa-monitoring\ActiveMonitor\AKS\playwrightimp\node_modules\playwright-core\lib\chromium\crProtocolHelper.js:93:36)
at FrameSession._handleException (C:\code\owa-monitoring\ActiveMonitor\AKS\playwrightimp\node_modules\playwright-core\lib\chromium\crPage.js:536:76)
at CRSession. (C:\code\owa-monitoring\ActiveMonitor\AKS\playwrightimp\node_modules\playwright-core\lib\chromium\crPage.js:294:105)
at CRSession.emit (events.js:203:13)

It fails on this line, messageWithStack is undefined:

function exceptionToError(exceptionDetails) {
const messageWithStack = getExceptionMessage(exceptionDetails);
const lines = messageWithStack.split('\n');

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions