Session closed. Most likely the page has been closed
SilverKnightKMA opened this issue · 4 comments
SilverKnightKMA commented
Describe the bug
Last week the claiming worked just fine, got the ping on discord got on the link, i do the captcha and the game is claimed. But this time it crashed. Run from source, lastest version (7dda5cb).
Screenshots or Logs
F:\tools\epicgames-freegames-node>npm run start
> epicgames-freegames-node@4.1.0 start
> ts-node src/index.ts
[2023-04-24 10:18:51.926 +0700] INFO: Started epicgames-freegames-node
[2023-04-24 10:18:51.927 +0700] DEBUG: Skipping version check
skipVersionCheck: false
[2023-04-24 10:18:51.929 +0700] DEBUG: Starting web server for captcha portals
[2023-04-24 10:18:51.935 +0700] INFO: Checking free games for REDACTED@gmail.com
user: "REDACTED@gmail.com"
[2023-04-24 10:18:51.935 +0700] DEBUG: Launching a new browser
user: "REDACTED@gmail.com"
[2023-04-24 10:18:52.286 +0700] DEBUG: Logging in with puppeteer
user: "REDACTED@gmail.com"
[2023-04-24 10:18:52.286 +0700] DEBUG: Launching a new browser
user: "REDACTED@gmail.com"
[2023-04-24 10:18:52.558 +0700] DEBUG: Launching a new page
user: "REDACTED@gmail.com"
[2023-04-24 10:18:52.726 +0700] TRACE: devtools://devtools/bundled/inspector.html?ws=127.0.0.1:44358/devtools/page/8C81C2D2DD331F99055612D903E8D611
user: "REDACTED@gmail.com"
[2023-04-24 10:18:55.480 +0700] ERROR: Protocol error (Target.activateTarget): Session closed. Most likely the page has been closed.
user: "REDACTED@gmail.com"
err: {
"type": "Error",
"message": "Protocol error (Target.activateTarget): Session closed. Most likely the page has been closed.",
"stack":
Error: Protocol error (Target.activateTarget): Session closed. Most likely the page has been closed.
at CDPSessionImpl.send (F:\tools\epicgames-freegames-node\node_modules\puppeteer-core\src\common\Connection.ts:516:9)
at next (F:\tools\epicgames-freegames-node\node_modules\puppeteer-extra-plugin-stealth\evasions\sourceurl\index.js:34:41)
at CDPSessionImpl.send (F:\tools\epicgames-freegames-node\node_modules\puppeteer-extra-plugin-stealth\evasions\sourceurl\index.js:67:18)
at CDPPage._CDPPage_screenshotTask (F:\tools\epicgames-freegames-node\node_modules\puppeteer-core\src\common\Page.ts:1382:24)
at F:\tools\epicgames-freegames-node\node_modules\puppeteer-core\src\common\Page.ts:1374:34
at processTicksAndRejections (node:internal/process/task_queues:95:5)
Additional context
claabs commented
If you're running from source, maybe you missed running npm i
or npm ci
in after the latest update? There were some major changes to the puppeteer and chromium versions.
SilverKnightKMA commented
I will try to clone and config all from scratch
SilverKnightKMA commented
Still got this error with new config from scratch, i will post my config.json:
{
// "testNotifiers": true,
"searchStrategy": "weekly",
"runOnStartup": true,
"cronSchedule": "5 16 * * *",
"logLevel": "trace",
"webPortalConfig": {
"baseUrl": "https://epic.domain.com/",
},
"accounts": [
{
"email": "email@gmail.com",
"password": "pw",
"totp": "totp"
},
{
"email": "email@gmail.com",
"password": "pw",
"totp": "totp"
},
{
"email": "email@gmail.com",
"password": "pw",
},
],
"notifiers": [
// You may configure as many of any notifier as needed
// Here are some examples of each type
{
"type": "discord",
"webhookUrl": "https://discord.com/api/webhooks/webhook",
// Optional list of users or roles to mention
"mentionedUsers": ["id"],
"mentionedRoles": ["id"],
},
],
}
Steps to reproduce the bug:
- git clone repo
- create config from this file and edit information
{
"runOnStartup": true,
"cronSchedule": "5 16 * * *",
"logLevel": "info",
"webPortalConfig": {
"baseUrl": "https://epic.exmaple.com",
},
"accounts": [
{
"email": "example@gmail.com",
"password": "abc1234",
"totp": "EMNCF83ULU3K3PXPJBSWY3DPEHPK3PXPJWY3DPEHPK3YI69R39NE"
},
],
"notifiers": [
// You may configure as many of any notifier as needed
// Here are some examples of each type
{
"type": "email",
"smtpHost": "smtp.gmail.com",
"smtpPort": 587,
"emailSenderAddress": "hello@gmail.com",
"emailSenderName": "Epic Games Captchas",
"emailRecipientAddress": "hello@gmail.com",
"secure": false,
"auth": {
"user": "hello@gmail.com",
"pass": "abc123",
},
},
{
"type": "discord",
"webhookUrl": "https://discord.com/api/webhooks/123456789123456789/A-abcdefghijklmn-abcdefghijklmnopqrst12345678-abcdefghijklmnop123456",
// Optional list of users or roles to mention
"mentionedUsers": ["914360712086843432"],
"mentionedRoles": ["734548250895319070"],
},
{
"type": "telegram",
// Optional Custom TELEGRAM server URL
"apiUrl": "https://api.telegram.org",
"token": "644739147:AAGMPo-Jz3mKRnHRTnrPEDi7jUF1vqNOD5k",
"chatId": "-987654321",
},
{
"type": "apprise",
"apiUrl": "http://192.168.1.2:8000",
"urls": "mailto://user:pass@gmail.com",
},
{
"type": "pushover",
"token": "a172fyyl9gw99p2xi16tq8hnib48p2",
"userKey": "uvgidym7l5ggpwu2r8i1oy6diaapll",
},
{
"type": "gotify",
"apiUrl": "https://gotify.net",
"token": "SnL-wAvmfo_QT",
},
{
"type": "homeassistant",
"instance": "https://homeassistant.example.com",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
"notifyservice": "mobile_app_smartphone_name",
},
{
"type": "bark",
// your bark key
"key": "xxxxxxxxxxxxxxxxxxxxxx",
// bark title, optional, default: 'epicgames-freegames'
"title": "epicgames-freegames",
// bark group, optional, default: 'epicgames-freegames'
"group": "epicgames-freegames",
// bark private service address, optional, default: 'https://api.day.app'
"apiUrl": "https://api.day.app"
},
{
"type": "ntfy",
"webhookUrl": "https://ntfy.example.com/mytopic",
"priority": "urgent",
"token": "tk_mytoken"
},
],
}
- npm i
- npm run start