Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

Media Download Issue #349

@victor-halla

Description

@victor-halla

I currently have a service running on docker container. In this container I'm running four instances. I created a service to download media images using the api and it works during 1 to 4 hours. After that period of time API returns:

The service was not able to process your request
Message not Found

500 - "{\"success\":false,\"error\":\"Message not Found\"}"

If I restarted the docker container it starts working again.
Server has enought space on hard drive, memory and cpu.
I was invetigating the logs on docker and get the follwoing:

`root@whatsapp:/opt# docker logs 7e7a24f50529

whatsapp-web-api@1.0.0 start
node server.js

Server running on port 3000
existing session detected ABCD
existing session detected EFGH
existing session detected IJKL
existing session detected MNOP
/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js:284
throw new Error('Execution context was destroyed, most likely because of a navigation.');
^

Error: Execution context was destroyed, most likely because of a navigation.
at rewriteError (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js:284:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async ExecutionContext._ExecutionContext_evaluate (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js:227:56)
at async ExecutionContext.evaluate (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js:107:16)
at async Client.inject (/usr/src/app/node_modules/whatsapp-web.js/src/Client.js:102:13)
at async /usr/src/app/node_modules/whatsapp-web.js/src/Client.js:352:13

Node.js v20.18.0
npm notice
npm notice New major version of npm available! 10.8.2 -> 11.4.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.4.1
npm notice To update run: npm install -g npm@11.4.1
npm notice

whatsapp-web-api@1.0.0 start
node server.js

Server running on port 3000
existing session detected ABCD
existing session detected EFGH
existing session detected IJKL
existing session detected MNOP
Download media error: Evaluation failed: Error: webMediaType is invalid: interactive
at new Error (:6:31)
at i (https://static.whatsapp.net/rsrc.php/v4/y4/r/gzZy68pGgAw.js:76:180)
at Object.e [as getMetricMediaType] (https://static.whatsapp.net/rsrc.php/v4iYpu4/yQ/l/rt/VbJ3wR-Vl7Z.js:1182:3631)
at Object. (https://static.whatsapp.net/rsrc.php/v4iYpu4/yQ/l/rt/VbJ3wR-Vl7Z.js:1435:733)
at Generator.next ()
at h (https://static.whatsapp.net/rsrc.php/v4/y4/r/gzZy68pGgAw.js:149:125)
at g (https://static.whatsapp.net/rsrc.php/v4/y4/r/gzZy68pGgAw.js:149:349)
at https://static.whatsapp.net/rsrc.php/v4/y4/r/gzZy68pGgAw.js:149:408
at new Promise ()
at Object. (https://static.whatsapp.net/rsrc.php/v4/y4/r/gzZy68pGgAw.js:149:277)
root@whatsapp:/opt#`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions