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

Auto re-spawn on timeout errors? #48

Closed
famewolf opened this issue Apr 1, 2019 · 0 comments
Closed

Auto re-spawn on timeout errors? #48

famewolf opened this issue Apr 1, 2019 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@famewolf
Copy link

famewolf commented Apr 1, 2019

I wondered if the program could wait a bit and then retry on timeout errors such as these:

(node:15969) UnhandledPromiseRejectionWarning: TimeoutError: Navigation Timeout Exceeded: 30000ms exceeded
at Promise.then (/home/famewolf/giveaway-grabber/node_modules/puppeteer/lib/LifecycleWatcher.js:143:21)
at
-- ASYNC --
at Frame. (/home/famewolf/giveaway-grabber/node_modules/puppeteer/lib/helper.js:108:27)
at Page.waitForNavigation (/home/famewolf/giveaway-grabber/node_modules/puppeteer/lib/Page.js:676:49)
at Page. (/home/famewolf/giveaway-grabber/node_modules/puppeteer/lib/helper.js:109:23)
at navigateToGiveaway (/home/famewolf/giveaway-grabber/src/giveaways.js:158:35)
at asyncForEach (/home/famewolf/giveaway-grabber/src/giveaways.js:302:10)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
(node:15969) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:15969) [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.

@jpchip jpchip added the bug Something isn't working label Apr 5, 2019
@jpchip jpchip self-assigned this Apr 7, 2019
@jpchip jpchip closed this as completed Apr 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants