Skip to content

Don't kill node.js / REPL #11342

Closed
Closed
@pannous

Description

@pannous

Version: v7.5.0
Platform: Darwin iMac.local 16.4.0 Darwin Kernel Version 16.4.0: Thu Dec 22 22:53:21 PST 2016; root:xnu-3789.41.3~3/RELEASE_X86_64 x86_64

Somehow a broken promise kills the whole REPL:

> /usr/local/lib/node_modules/selenium-webdriver/lib/promise.js:2517
        throw error;
        ^

InvalidArgumentError: Missing required parameter: sessionId
    at buildPath (/usr/local/lib/node_modules/selenium-webdriver/lib/http.js:552:15)
    at toHttpRequest (/usr/local/lib/node_modules/selenium-webdriver/lib/http.js:367:16)
    at Executor.execute (/usr/local/lib/node_modules/selenium-webdriver/lib/http.js:433:19)
    at process._tickDomainCallback (internal/process/next_tick.js:129:7)
From: Task: WebDriver.findElement(By(css selector, *[name="login"]))
    at WebDriver.findElement (/usr/local/lib/node_modules/selenium-webdriver/lib/webdriver.js:1023:17)
    at repl:1:5
    at sigintHandlersWrap (vm.js:98:12)
    at REPLServer.defaultEval (repl.js:307:29)
    at bound (domain.js:280:14)
    at REPLServer.onLine (repl.js:506:10)
    at emitOne (events.js:101:20)
    at REPLServer.emit (events.js:188:7)
    at REPLServer.Interface._onLine (readline.js:247:10)
    at REPLServer.Interface._line (readline.js:591:8)
From: Task: WebElement.sendKeys()
    at repl:1:42
    at sigintHandlersWrap (vm.js:98:12)
    at REPLServer.defaultEval (repl.js:307:29)
    at bound (domain.js:280:14)
    at REPLServer.onLine (repl.js:506:10)
    at emitOne (events.js:101:20)
    at REPLServer.emit (events.js:188:7)
    at REPLServer.Interface._onLine (readline.js:247:10)
    at REPLServer.Interface._line (readline.js:591:8)
    at REPLServer.Interface._ttyWrite (readline.js:870:14)
home:~/

This must never occur!

Metadata

Metadata

Assignees

No one assigned

    Labels

    replIssues and PRs related to the REPL subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions