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

Execution context was destroyed, most likely because of a navigation #374

Open
Cryptoverso opened this issue Dec 27, 2024 · 0 comments
Open

Comments

@Cryptoverso
Copy link

whatsapp-chatgpt  | /app/node_modules/whatsapp-web.js/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js:284
whatsapp-chatgpt  |         throw new Error('Execution context was destroyed, most likely because of a navigation.');
whatsapp-chatgpt  |               ^
whatsapp-chatgpt  | 
whatsapp-chatgpt  | Error: Execution context was destroyed, most likely because of a navigation.
whatsapp-chatgpt  |     at rewriteError (/app/node_modules/whatsapp-web.js/node_modules/puppeteer-core/src/common/ExecutionContext.ts:363:11)
whatsapp-chatgpt  |     at processTicksAndRejections (node:internal/process/task_queues:105:5)
whatsapp-chatgpt  |     at ExecutionContext._ExecutionContext_evaluate (/app/node_modules/whatsapp-web.js/node_modules/puppeteer-core/src/common/ExecutionContext.ts:292:7)
whatsapp-chatgpt  |     at ExecutionContext.evaluate (/app/node_modules/whatsapp-web.js/node_modules/puppeteer-core/src/common/ExecutionContext.ts:137:12)
whatsapp-chatgpt  |     at Client.getWWebVersion (/app/node_modules/whatsapp-web.js/src/Client.js:826:16)
whatsapp-chatgpt  |     at Client.inject (/app/node_modules/whatsapp-web.js/src/Client.js:98:25)
whatsapp-chatgpt  |     at Client.initialize (/app/node_modules/whatsapp-web.js/src/Client.js:342:9)
whatsapp-chatgpt  | 
whatsapp-chatgpt  | Node.js v23.5.0

I am running the application inside a Docker container, and it works fine. It turns out that sometimes there is a problem when deleting the QR code from the device where WhatsApp is located. And this error occurs. I have already tried to clear the temporary files so that the QR code appears again, but I was unsuccessful.

How can I reset the data of a stored device? to return to the screen where the QR code is printed?

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

1 participant