Skip to content

[GOWS] - Download media error #1930

@Jaedson-Digiliza

Description

@Jaedson-Digiliza

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions