Skip to content

[GOWS] - NEW download media error #1948

@Jaedson-Digiliza

Description

@Jaedson-Digiliza

Describe the bug

Some days ago, I reported a 404 status code error (which was solved), but now I’m getting some 403 status code errors

#1930

Version

{
  "version": "2026.3.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": "RECIBO - 19-01-2026 A 31-01-2026 WESLEY.pdf",
            "mimetype": "application/pdf",
            "error": {
                "code": 13,
                "details": "Error: 13 INTERNAL: failed to download media: download failed with status code 403\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:10577: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:2160: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:2145: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:1537:23)\n    at async WhatsappSessionGoWSPlus.downloadMediaSafe (/app/dist/core/engines/gows/session.gows.core.js:1527:20)\n    at async WhatsappSessionGoWSPlus.processIncomingMessage (/app/dist/core/engines/gows/session.gows.core.js:1520:27)",
                "metadata": {
                    "content-type": [
                        "application/grpc"
                    ]
                }
            }
        }

Expected behavior

Media message is downloadable

patron:PLUS

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions