Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled Rejection: checkLegacyResponse() at error.js:505 #122

Closed
huan opened this issue Dec 7, 2016 · 2 comments
Closed

Unhandled Rejection: checkLegacyResponse() at error.js:505 #122

huan opened this issue Dec 7, 2016 · 2 comments

Comments

@huan
Copy link
Member

huan commented Dec 7, 2016

uncaughtRejection problem: it seems like we can not reject a promise twice. if so, there will be a uncaughtRejection error.

https://travis-ci.org/wechaty/wechaty/jobs/182046177#L2780

VERB StateMonitor Puppet:current(dead,true) <- (dead,false)
  ✔ test › puppet-web › event › Puppet Web Event smoking test (1m 31.6s)
Unhandled Rejection: dist/test/puppet-web/event.spec.js
  WebDriverError: unknown error: Chrome failed to start: was killed
    (Driver info: chromedriver=2.25.426924 (649f9b868f6783ec9de71c123212b908bf3b232e),platform=Linux 4.4.0-51-generic x86_64)
        Object.checkLegacyResponse (/home/travis/build/wechaty/wechaty/node_modules/selenium-webdriver/lib/error.js:505:15)
        parseHttpResponse (/home/travis/build/wechaty/wechaty/node_modules/selenium-webdriver/lib/http.js:509:13)
        doSend.then.response (/home/travis/build/wechaty/wechaty/node_modules/selenium-webdriver/lib/http.js:440:13)
        process._tickCallback (internal/process/next_tick.js:103:7)
@huan huan added the bug label Dec 7, 2016
huan added a commit that referenced this issue Dec 7, 2016
@huan huan closed this as completed Dec 8, 2016
@huan
Copy link
Member Author

huan commented Dec 10, 2016

It seems reject a promise after resolve it will not cause this error.

After many days of study, I believe it's a bug inside selenium now:
SeleniumHQ/selenium#3232

@huan huan reopened this Dec 10, 2016
@huan huan changed the title Check to not reject() a promise twice Unhandled Rejection: checkLegacyResponse() at error.js:505 Dec 10, 2016
huan added a commit that referenced this issue Dec 10, 2016
@huan
Copy link
Member Author

huan commented Aug 18, 2017

Long time no see...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant