Skip to content

Crashes due to undefined worker(?) #67

Closed
@jzaefferer

Description

@jzaefferer

While working on #66 I ran into this, crashing the server with this stacktrace:

/Users/jza/dev/browserstack-runner/lib/server.js:150
          logger.info(chalk.red("[%s] Error:"), worker.string, formatTraceback
                                                      ^
TypeError: Cannot read property 'string' of undefined
    at /Users/jza/dev/browserstack-runner/lib/server.js:150:55
    at Array.forEach (native)
    at progressHandler (/Users/jza/dev/browserstack-runner/lib/server.js:149:26)
    at IncomingMessage.<anonymous> (/Users/jza/dev/browserstack-runner/lib/server.js:235:46)
    at IncomingMessage.EventEmitter.emit (events.js:92:17)
    at _stream_readable.js:920:16
    at process._tickCallback (node.js:415:13)

If it helps, here's the full output after I applied the workaround I described in #66: https://gist.github.com/jzaefferer/3a8d2ddd88a886c242d8

Metadata

Metadata

Assignees

No one assigned

    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