Guys, my Venom connects for about 24 hours and then it simply doesn't respond with .sendText anymore
In the log this starts to appear:
- Successfully main page!
Error: Requesting main frame too early!
at assert (/srv/api-whatsapp/node_modules/puppeteer/node_modules/puppeteer-core/lib/cjs/puppeteer/util/assert.js:18:15)
at FrameManager.mainFrame (/srv/api-whatsapp/node_modules/puppeteer/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/FrameManager.js:213:32)
at CdpPage.mainFrame (/srv/api-whatsapp/node_modules/puppeteer/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Page.js:406:35)
at CdpPage.evaluate (/srv/api-whatsapp/node_modules/puppeteer/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Page.js:841:31)
at /srv/api-whatsapp/node_modules/venom-bot/dist/api/layers/sender.layer.js:327:44
at new Promise ()
at Whatsapp.sendText (/srv/api-whatsapp/node_modules/venom-bot/dist/api/layers/sender.layer.js:304:16)
at action (/srv/api-whatsapp/src/controllers/sendTextController.js:16:41)
at comunicaWhatsApp (/srv/api-whatsapp/src/services/comunicaWhatsApp.js:20:7)
at exports.sendTextHandler (/srv/api-whatsapp/src/controllers/sendTextController.js:18:16)
at Layer.handle [as handle_request] (/srv/api-whatsapp/node_modules/express/lib/router/layer.js:95:5)
at next (/srv/api-whatsapp/node_modules/express/lib/router/route.js:149:13)
at Route.dispatch (/srv/api-whatsapp/node_modules/express/lib/router/route.js:119:3)
at Layer.handle [as handle_request] (/srv/api-whatsapp/node_modules/express/lib/router/layer.js:95:5)
at /srv/api-whatsapp/node_modules/express/lib/router/index.js:284:15
at Function.process_params (/srv/api-whatsapp/node_modules/express/lib/router/index.js:346:12)
Is anyone going through this?
It started about 2 weeks ago. Before, the connection was active normally without dropping.
Guys, my Venom connects for about 24 hours and then it simply doesn't respond with .sendText anymore
In the log this starts to appear:
Error: Requesting main frame too early!
at assert (/srv/api-whatsapp/node_modules/puppeteer/node_modules/puppeteer-core/lib/cjs/puppeteer/util/assert.js:18:15)
at FrameManager.mainFrame (/srv/api-whatsapp/node_modules/puppeteer/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/FrameManager.js:213:32)
at CdpPage.mainFrame (/srv/api-whatsapp/node_modules/puppeteer/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Page.js:406:35)
at CdpPage.evaluate (/srv/api-whatsapp/node_modules/puppeteer/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Page.js:841:31)
at /srv/api-whatsapp/node_modules/venom-bot/dist/api/layers/sender.layer.js:327:44
at new Promise ()
at Whatsapp.sendText (/srv/api-whatsapp/node_modules/venom-bot/dist/api/layers/sender.layer.js:304:16)
at action (/srv/api-whatsapp/src/controllers/sendTextController.js:16:41)
at comunicaWhatsApp (/srv/api-whatsapp/src/services/comunicaWhatsApp.js:20:7)
at exports.sendTextHandler (/srv/api-whatsapp/src/controllers/sendTextController.js:18:16)
at Layer.handle [as handle_request] (/srv/api-whatsapp/node_modules/express/lib/router/layer.js:95:5)
at next (/srv/api-whatsapp/node_modules/express/lib/router/route.js:149:13)
at Route.dispatch (/srv/api-whatsapp/node_modules/express/lib/router/route.js:119:3)
at Layer.handle [as handle_request] (/srv/api-whatsapp/node_modules/express/lib/router/layer.js:95:5)
at /srv/api-whatsapp/node_modules/express/lib/router/index.js:284:15
at Function.process_params (/srv/api-whatsapp/node_modules/express/lib/router/index.js:346:12)
Is anyone going through this?
It started about 2 weeks ago. Before, the connection was active normally without dropping.