TychoTheTaco / Twitch-Drops-Bot

A Node.js bot that will automatically watch Twitch streams and claim drop rewards.
MIT License
279 stars 36 forks source link

Crashing after Stream went down #183

Open yukaiin opened 2 years ago

yukaiin commented 2 years ago

So when the stream ends it just crashes.

These are my logs: [2022-08-20 00:53:04] [debug] latest release version: v1.2.5 [2022-08-20 00:53:04] [debug] Done checking for updates [2022-08-20 00:53:57] [debug] Updating drop campaigns... [2022-08-20 00:53:57] [debug] Found 106 campaigns. [2022-08-20 00:54:29] [debug] Found 2 pending campaigns. [2022-08-20 00:56:01] [debug] PONG [2022-08-20 00:57:39] [debug] url mismatch: https://www.twitch.tv/kenji?referrer=raid vs https://www.twitch.tv/shylily [2022-08-20 00:57:39] [info] Stream went down [2022-08-20 00:57:39] [info] Watched stream for 413 minutes [2022-08-20 00:57:40] [error] Error: net::ERR_ABORTED at about:blank at navigate (/home/pi/Desktop/yukain/node_modules/puppeteer/lib/cjs/puppeteer/common/FrameManager.js:200:23) at runMicrotasks () at processTicksAndRejections (node:internal/process/task_queues:96:5) at async FrameManager.navigateFrame (/home/pi/Desktop/yukain/node_modules/puppeteer/lib/cjs/puppeteer/common/FrameManager.js:174:21) at async Frame.goto (/home/pi/Desktop/yukain/node_modules/puppeteer/lib/cjs/puppeteer/common/FrameManager.js:616:16) at async Page.goto (/home/pi/Desktop/yukain/node_modules/puppeteer/lib/cjs/puppeteer/common/Page.js:1092:16)

TychoTheTaco commented 2 years ago

This looks like a duplicate of #129, which I still haven't been able to fix yet.

yukaiin commented 2 years ago

I think it is. Could be because the bot thinks it is on about:blank while actually still watching the hosted stream. That's what i think is happening there.