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 promise rejections are deprecated #9

Closed
uimator opened this issue Aug 31, 2017 · 4 comments
Closed

Unhandled promise rejections are deprecated #9

uimator opened this issue Aug 31, 2017 · 4 comments

Comments

@uimator
Copy link

uimator commented Aug 31, 2017

when run index.js,i get this error:

node index.js
(node:2199) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Navigation Timeout Exceeded: 30000ms exceeded
(node:2199) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

env:

  • node: v8.3.0
  • os: 10.12.6
@uimator uimator closed this as completed Aug 31, 2017
@emadehsan
Copy link
Owner

emadehsan commented Aug 31, 2017

Thanks for bringing up. This happens when the default time for navigating (30 seconds) exceeds.
It can be catered by

  1. Surrounding code with a try catch block.
    Or
  2. Increasing the navigation time by some amount by passing timeout: 90*1000

@uimator
Copy link
Author

uimator commented Aug 31, 2017

when i clean the proxy, it's ok.

@uimator
Copy link
Author

uimator commented Aug 31, 2017

@emadehsan thanks for reply。

@emadehsan
Copy link
Owner

No problem 👍

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

No branches or pull requests

2 participants