waha icon indicating copy to clipboard operation
waha copied to clipboard

[GOWS] - Download media error

Open Jaedson-Digiliza opened this issue 9 months ago • 6 comments

Describe the bug

A clear and concise description of what the bug is. Feel free to remove sections that you don't feel to make the text shorter!

Version

{
  "version": "2026.2.2",
  "engine": "GOWS",
  "tier": "PLUS",
  "browser": null,
  "platform": "linux/x64",
  "worker": {
    "id": null
  }
}

Steps

  1. Get webhook from message.any or get messages with downloadMedia=true
  2. Following is returned
"media": {
    "url": null,
    "filename": "Contacts-12-set.-08-38.xlsx",
    "mimetype": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
    "error": {
        "code": 13,
        "details": "Error: 13 INTERNAL: failed to download media: download failed with status code 404\n    at callErrorFromStatus (/app/node_modules/@grpc/grpc-js/build/src/call.js:32:19)\n    at Object.onReceiveStatus (/app/node_modules/@grpc/grpc-js/build/src/client.js:193:76)\n    at Object.onReceiveStatus (/app/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:367:141)\n    at Object.onReceiveStatus (/app/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:327:181)\n    at /app/node_modules/@grpc/grpc-js/build/src/resolving-call.js:135:78\n    at process.processTicksAndRejections (node:internal/process/task_queues:84:11)\nfor call at\n    at MessageServiceClient.makeUnaryRequest (/app/node_modules/@grpc/grpc-js/build/src/client.js:161:32)\n    at MessageServiceClient.DownloadMedia (/app/node_modules/@grpc/grpc-js/build/src/make-client.js:105:19)\n    at MessageServiceClient.DownloadMedia (/app/dist/core/engines/gows/grpc/gows.js:10531:30)\n    at node:internal/util:495:21\n    at new Promise (<anonymous>)\n    at bound  (node:internal/util:481:12)\n    at /app/dist/core/engines/gows/session.gows.core.js:2134:40\n    at TmpDir.use (/app/dist/utils/tmpdir.js:22:26)\n    at async GOWSEngineMediaProcessor.getMediaBuffer (/app/dist/core/engines/gows/session.gows.core.js:2119:16)\n    at async MediaManager.fetchMedia (/app/dist/core/media/MediaManager.js:95:24)\n    at async MediaManager.withRetry (/app/dist/core/media/MediaManager.js:119:20)\n    at async MediaManager.processMediaInternal (/app/dist/core/media/MediaManager.js:55:28)\n    at async MediaManager.processMedia (/app/dist/core/media/MediaManager.js:82:26)\n    at async WhatsappSessionGoWSPlus.downloadMedia (/app/dist/core/engines/gows/session.gows.core.js:1523:23)\n    at async WhatsappSessionGoWSPlus.downloadMediaSafe (/app/dist/core/engines/gows/session.gows.core.js:1513:20)\n    at async WhatsappSessionGoWSPlus.processIncomingMessage (/app/dist/core/engines/gows/session.gows.core.js:1506:27)",
        "metadata": {
            "content-type": [
                "application/grpc"
            ]
        }
    }
}

Expected behavior

Media message is downloadable

Jaedson-Digiliza avatar Feb 24 '26 21:02 Jaedson-Digiliza

I am facing a similar problem

AdrielFerr avatar Feb 25 '26 01:02 AdrielFerr

+1 Error: 13 INTERNAL: failed to download media: read tcp

priscillienMei avatar Feb 25 '26 09:02 priscillienMei

@devlikepro can we get a deadline for this fix?

Jaedson-Digiliza avatar Feb 26 '26 16:02 Jaedson-Digiliza

Hi! Could you try dev image?

Make sure to select the engine via the environment variable - WHATSAPP_DEFAULT_ENGINE=GOWS:

  • devlikeapro/waha-plus:dev
  • devlikeapro/waha-plus:dev-chrome
  • devlikeapro/waha-plus:dev-arm

patron:PRO

devlikepro avatar Mar 02 '26 03:03 devlikepro

2 days using the dev image and until now there is no errors to download media

patron:PLUS

Jaedson-Digiliza avatar Mar 04 '26 17:03 Jaedson-Digiliza

🚀 released it

patron:PRO

devlikepro avatar Mar 05 '26 10:03 devlikepro