waha icon indicating copy to clipboard operation
waha copied to clipboard

[GOWS] - POST /api/sendText retorna erro 500 (gRPC error 463)

Open trojantm opened this issue 9 months ago • 28 comments

Description

When trying to send a text message using the POST /api/sendText endpoint, the API responds with HTTP 500 and the following internal gRPC error:

This happens even when the session is valid and running.


Affected Endpoint

POST /api/sendText


Request Payload

{
  "chatId": "[email protected]",
  "text": "Oii",
  "session": "FA8E1730-6A62-485C-BDF3-5626F231F3A5"
}


Response

{
  "statusCode": 500,
  "timestamp": "2026-02-10T23:38:04.173Z",
  "exception": {
    "message": "2 UNKNOWN: server returned error 463",
    "code": 2,
    "details": "server returned error 463",
    "metadata": {},
    "name": "Error"
  }
}

Expected Behavior:

The text message should be sent successfully and the endpoint should return HTTP 201, as documented for /api/sendText.

Actual Behavior:

The API returns HTTP 500 with an internal gRPC error, preventing the message from being sent.

Environment

- WAHA version: 2026.1.5 or 2026.2.1

- Engine: GOWS

- Tier: PLUS

- Platform: linux/x64

- Worker: wh-w10

- Browser: null

- Deployment: Docker

Additional Notes:

- The endpoint usage matches the Swagger specification (POST /api/sendText).

- chatId format is valid (@c.us).

- The session exists and is in a working state.

- The error seems to originate from the internal gRPC layer (MessageServiceClient.SendMessage).

[![patron:PLUS](https://img.shields.io/badge/patron-PLUS-a0e6ba)](https://waha.devlike.pro/docs/how-to/plus-version/#tiers)

trojantm avatar Feb 10 '26 23:02 trojantm

{ "statusCode": 500, "timestamp": "2026-02-10T23:38:04.173Z", "exception": { "message": "2 UNKNOWN: server returned error 463", "code": 2, "details": "server returned error 463", "metadata": {}, "name": "Error", "stack": "Error: 2 UNKNOWN: server returned error 463\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.SendMessage (/app/node_modules/@grpc/grpc-js/build/src/make-client.js:105:19)\n at MessageServiceClient.SendMessage (/app/dist/core/engines/gows/grpc/gows.js:10372:30)\n at node:internal/util:495:21\n at new Promise (<anonymous>)\n at node:internal/util:481:12\n at WhatsappSessionGoWSPlus.sendText (/app/dist/core/engines/gows/session.gows.core.js:513:78)\n at descriptor.value (/app/dist/core/abc/activity.js:9:35)\n at process.processTicksAndRejections (node:internal/process/task_queues:103:5)" }, "request": { "path": "/api/sendText", "method": "POST", "body": { "chatId": "[email protected]", "text": "Oii", "session": "FA8E1730-6A62-485C-BDF3-5626F231F3A5" }, "query": {} }, "version": { "version": "2026.1.5", "engine": "GOWS", "tier": "PLUS", "browser": null, "platform": "linux/x64", "worker": { "id": "wh-w10" } } }

patron:PLUS

trojantm avatar Feb 10 '26 23:02 trojantm

Same issue here:

{
  "statusCode": 500,
  "timestamp": "2026-02-10T19:07:58.842Z",
  "exception": {
    "message": "2 UNKNOWN: server returned error 463",
    "code": 2,
    "details": "server returned error 463",
    "metadata": {},
    "name": "Error",
    "stack": "Error: 2 UNKNOWN: server returned error 463\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.SendMessage (/app/node_modules/@grpc/grpc-js/build/src/make-client.js:105:19)\n    at MessageServiceClient.SendMessage (/app/dist/core/engines/gows/grpc/gows.js:10372:30)\n    at node:internal/util:495:21\n    at new Promise (<anonymous>)\n    at node:internal/util:481:12\n    at WhatsappSessionGoWSPlus.sendText (/app/dist/core/engines/gows/session.gows.core.js:513:78)\n    at descriptor.value (/app/dist/core/abc/activity.js:9:35)\n    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)"
  },
  "request": {
    "path": "/api/sendText",
    "method": "POST",
    "body": {
      "chatId": "*************@c.us",
      "reply_to": null,
      "text": ".",
      "linkPreview": true,
      "linkPreviewHighQuality": false,
      "session": "*************"
    },
    "query": {}
  },
  "version": {
    "version": "2026.1.5",
    "engine": "GOWS",
    "tier": "PLUS",
    "browser": null,
    "platform": "linux/x64",
    "worker": {
      "id": null
    }
  }
}

awabrh avatar Feb 12 '26 10:02 awabrh

same for me, but only for 1 of 16 sender GOWS (2026.2.1 PLUS)

patron:PLUS

carlotnx avatar Feb 16 '26 09:02 carlotnx

Same problem with WebJs engine

Image

patron:PLUS

carlotnx avatar Feb 17 '26 10:02 carlotnx

Following a second check with the account owner, it appears the 463 error is due to a 7-day restriction. This block only affects new conversations.

patron:PLUS

carlotnx avatar Feb 17 '26 14:02 carlotnx

https://github.com/tulir/whatsmeow/pull/1081 Perhaps it's related.

patron:PLUS

trojantm avatar Mar 31 '26 19:03 trojantm

@devlikepro Is there any solution or explanation for this issue? I performed the following test:

Sent the message via API and received response 463 Sent the same message directly through WhatsApp, and it worked normally Sent it again via API, and this time it also worked as expected

patron:PLUS

trojantm avatar Apr 06 '26 18:04 trojantm

+1

patron:PLUS

noeroelama avatar May 20 '26 02:05 noeroelama

+1

patron:PLUS

joaoAPina avatar May 25 '26 13:05 joaoAPina

+1

tangjiachao avatar May 26 '26 01:05 tangjiachao

+1

patron:PLUS

rafwell avatar May 28 '26 15:05 rafwell

+1

hardeep-97 avatar May 29 '26 04:05 hardeep-97

@devlikepro Any update on this?

patron:PLUS

nishit321 avatar May 29 '26 13:05 nishit321

@devlikepro

2026-05-29T19:38:19.9203373Z     err: {
2026-05-29T19:38:19.9203407Z       "type": "Error",
2026-05-29T19:38:19.9203436Z       "message": "2 UNKNOWN: server returned error 463",
2026-05-29T19:38:19.9203458Z       "stack":
2026-05-29T19:38:19.9203481Z           Error: 2 UNKNOWN: server returned error 463
2026-05-29T19:38:19.9203506Z               at callErrorFromStatus (/app/node_modules/@grpc/grpc-js/build/src/call.js:32:19)
2026-05-29T19:38:19.9203571Z               at Object.onReceiveStatus (/app/node_modules/@grpc/grpc-js/build/src/client.js:193:76)
2026-05-29T19:38:19.9203599Z               at Object.onReceiveStatus (/app/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:367:141)
2026-05-29T19:38:19.9203625Z               at Object.onReceiveStatus (/app/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:327:181)
2026-05-29T19:38:19.9203649Z               at /app/node_modules/@grpc/grpc-js/build/src/resolving-call.js:135:78
2026-05-29T19:38:19.9203674Z               at process.processTicksAndRejections (node:internal/process/task_queues:84:11)
2026-05-29T19:38:19.9203697Z           for call at
2026-05-29T19:38:19.9203722Z               at MessageServiceClient.makeUnaryRequest (/app/node_modules/@grpc/grpc-js/build/src/client.js:161:32)
2026-05-29T19:38:19.9203749Z               at MessageServiceClient.SendMessage (/app/node_modules/@grpc/grpc-js/build/src/make-client.js:105:19)
2026-05-29T19:38:19.9203773Z               at MessageServiceClient.SendMessage (/app/dist/core/engines/gows/grpc/gows.js:10542:30)
2026-05-29T19:38:19.9203796Z               at node:internal/util:495:21
2026-05-29T19:38:19.9203828Z               at new Promise (<anonymous>)
2026-05-29T19:38:19.9203852Z               at node:internal/util:481:12
2026-05-29T19:38:19.9203878Z               at /app/dist/plus/engines/gows/session.gows.plus.js:212:82
2026-05-29T19:38:19.9203902Z               at async TmpDir.use (/app/dist/utils/tmpdir.js:22:20)
2026-05-29T19:38:19.9203929Z               at async WhatsappSessionGoWSPlus.sendMedia (/app/dist/plus/engines/gows/session.gows.plus.js:202:16)
2026-05-29T19:38:19.9203960Z               at async WhatsappSessionGoWSPlus.sendFile (/app/dist/plus/engines/gows/session.gows.plus.js:221:16)
2026-05-29T19:38:19.9203986Z               at async descriptor.value (/app/dist/core/abc/activity.js:9:20)
2026-05-29T19:38:19.9204009Z       "code": 2,
2026-05-29T19:38:19.9204034Z       "details": "server returned error 463",
2026-05-29T19:38:19.9204058Z       "metadata": {
2026-05-29T19:38:19.9204101Z         "content-type": [
2026-05-29T19:38:19.9204127Z           "application/grpc"
2026-05-29T19:38:19.9204152Z         ]
2026-05-29T19:38:19.9204176Z       }
2026-05-29T19:38:19.9204202Z     }

happens when sending a .pdf file

patron:PLUS

Jaedson-Digiliza avatar May 29 '26 19:05 Jaedson-Digiliza

+1

patron:PLUS

joaoAPina avatar Jun 01 '26 21:06 joaoAPina

@devlikepro Any update on this?

patron:PLUS

nishit321 avatar Jun 02 '26 12:06 nishit321

This bud is having a significant impact on GOWS because the shift to @lid is becoming increasingly common. Is there an estimated time for a fix, please?

patron:PLUS

gustavo-mamedep avatar Jun 04 '26 22:06 gustavo-mamedep

I am receiving this error when sending messages to new contacts who have never sent a message to this instance before:

{"statusCode":500,"timestamp":"2026-06-19T14:02:37.248Z","exception":{"message":"2 UNKNOWN: server returned error 463","code":2,"details":"server returned error 463","metadata":{},"name":"Error","stack":"Error: 2 UNKNOWN: server returned error 463\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.SendMessage (/app/node_modules/@grpc/grpc-js/build/src/make-client.js:105:19)\n at MessageServiceClient.SendMessage (/app/dist/core/engines/gows/grpc/gows.js:10502:30)\n at node:internal/util:495:21\n at new Promise ()\n at node:internal/util:481:12\n at WhatsappSessionGoWSPlus.sendText (/app/dist/core/engines/gows/session.gows.core.js:519:78)\n at descriptor.value (/app/dist/core/abc/activity.js:9:35)\n at process.processTicksAndRejections (node:internal/process/task_queues:103:5)"}

@devlikepro

Emanuellefelix avatar Jun 19 '26 14:06 Emanuellefelix

+1

huangzhong0406 avatar Jun 23 '26 02:06 huangzhong0406

+1, fix this please. This error is getting more often recently

davidmahbubi avatar Jun 24 '26 13:06 davidmahbubi