Skip to content

Throws: Cannot read property 'message' of undefined in error handler #96

Open
@Borewit

Description

@Borewit

Expected Behavior

Be able to run browserstack/karma-browserstack-example after updating the dependencies as done in PR: browserstack/karma-browserstack-example#4.

Actual Behavior

Karma catches an error (thrown by browserstack-local:
28 01 2020 21:48:06.733:ERROR [karma-server]: UncaughtException

Steps to Reproduce the Problem

Run the example with PR: browserstack/karma-browserstack-example#4

browserstack local arguments

Platform details

  1. browserstack-local-nodejs version: master branch, 1.4.5, d238484
  2. node version: 10.16.3
  3. os type and version: Linux Fedora 30

Details

Karma catches an error:
28 01 2020 21:48:06.733:ERROR [karma-server]: UncaughtException

caused by, Throws: Cannot read property 'message' of undefined in error handler in:

callback(new LocalError(data['message']['message']));

where

data = {}
TypeError: Cannot read property 'message' of undefined
    at /home/borewit/code/github/browserstack-local-nodejs/lib/Local.js:65:50
    at ChildProcess.exithandler (child_process.js:285:7)
    at ChildProcess.emit (events.js:198:13)
    at maybeClose (internal/child_process.js:982:16)
    at Socket.stream.socket.on (internal/child_process.js:389:11)
    at Socket.emit (events.js:198:13)
    at Pipe._handle.close (net.js:606:12)

Proposed fix: #97

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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy