[GOWS] All outbound messages fail with `server returned error 400` until session restart
Note: Session names, phone numbers, and URLs in examples are fictional placeholders for privacy.
Summary
On GOWS engine, some sessions enter a state where every outbound message type fails with HTTP 500 and gRPC error server returned error 400. The WAHA dashboard still shows the session as WORKING.
Workaround that consistently fixes the problem: restart the session via POST /api/sessions/{session}/restart (stop + start, without deleting credentials or scanning QR again). After restart, text, image, audio, and video sends work again.
The issue is session-specific (other sessions on the same worker continue to work) and can affect all contacts for the broken session, not only one chatId.
Environment
| Field | Value |
|---|---|
| WAHA version | 2026.4.2 (also observed on 2026.4.3) |
| Engine | GOWS |
| Tier | PLUS |
| Platform | linux/x64 |
| Worker ID | waha_gowdy |
| Example session | example_session_001 |
| Example chatId | [email protected] |
Symptoms
- Session status remains
WORKINGin the dashboard/API. - No outbound message type succeeds for that session:
- Text (
POST /api/sendText) - Image (
POST /api/sendImage) - Audio / voice (
POST /api/sendVoice,POST /api/sendAudio) - Video (
POST /api/sendVideo) - Documents and other send endpoints that use
MessageService.SendMessageover gRPC
- Text (
- Inbound messages may still be received (not fully verified in all cases; worth confirming in logs).
- Sending from the physical phone may still work while the API fails (suggests desync between GOWS store/state and the linked device).
- Only some sessions are affected; other sessions on the same worker are fine.
POST /api/sessions/{session}/restartrestores sending for all message types without re-pairing (no new QR scan).
Error response (API)
HTTP 500 with body similar to:
{
"statusCode": 500,
"timestamp": "2026-05-18T22:20:44.455Z",
"exception": {
"message": "2 UNKNOWN: server returned error 400",
"code": 2,
"details": "server returned error 400",
"metadata": {},
"name": "Error"
},
"request": {
"path": "/api/sendText",
"method": "POST",
"body": {
"chatId": "[email protected]",
"text": "...",
"session": "example_session_001"
}
},
"version": {
"version": "2026.4.2",
"engine": "GOWS",
"tier": "PLUS",
"worker": { "id": "waha_gowdy" }
}
}
The same server returned error 400 occurs for video and other media endpoints.
Stack traces
sendText
Error: 2 UNKNOWN: server returned error 400
at callErrorFromStatus (.../node_modules/@grpc/grpc-js/build/src/call.js:32:19)
...
at MessageServiceClient.SendMessage (.../dist/core/engines/gows/grpc/gows.js:10502:30)
at WhatsappSessionGoWSPlus.sendText (.../dist/core/engines/gows/session.gows.core.js:517:78)
at descriptor.value (.../dist/core/abc/activity.js:9:35)
sendVideo
Error: 2 UNKNOWN: server returned error 400
...
at MessageServiceClient.SendMessage (.../dist/core/engines/gows/grpc/gows.js:10502:30)
at WhatsappSessionGoWSPlus.sendMedia (.../dist/plus/engines/gows/session.gows.plus.js:185:16)
at WhatsappSessionGoWSPlus.sendVideo (.../dist/plus/engines/gows/session.gows.plus.js:213:16)
Both paths call the same gRPC method: MessageService.SendMessage.
Example requests that failed
Text
POST /api/sendText
Content-Type: application/json
{
"session": "example_session_001",
"chatId": "[email protected]",
"text": "Hello"
}
Video
POST /api/sendVideo
Content-Type: application/json
{
"session": "example_session_001",
"chatId": "[email protected]",
"caption": "Example",
"convert": false,
"file": {
"url": "https://example.com/video.mp4",
"mimetype": "video/mp4",
"filename": "video.mp4"
}
}
Media download and temp-file preparation complete successfully; failure happens only at SendMessage (WhatsApp server rejects with code 400).
Workaround (confirmed)
POST /api/sessions/example_session_001/restart
After restart:
- Session returns to
WORKING sendText,sendImage,sendVoice/sendAudio,sendVideo, etc. work again- No session delete and no new QR pairing required
If restart stops working in the future, full session recreate (delete + QR) may still be needed; so far restart alone is sufficient.
I had the same error here. Only way to fix was restarting the session.
Log:
{"statusCode":500,"timestamp":"2026-05-19T10:51:08.623Z","exception":{"message":"2 UNKNOWN: server returned error 400","code":2,"details":"server returned error 400","metadata":{},"name":"Error","stack":"Error: 2 UNKNOWN: server returned error 400\n at callErrorFromStatus (/app/node_modules/@grpc/grpc-js/build/src/call.js:32:19)\n at Object.onReceiveStatus (/app/node_mggows.js:10456:30)\n at node:internal/util:495:21\n at new Promise (
Same issue here.
{"statusCode":500,"timestamp":"2026-05-19T13:50:00.954Z","exception":{"message":"2 UNKNOWN: server returned error 400","code":2,"details":"server returned error 400","metadata":{},"name":"Error","stack":"Error: 2 UNKNOWN: server returned error 400\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 (
same issue...
API Error: Request failed with status code 500
Data: {
"statusCode": 500,
"timestamp": "2026-05-19T18:50:16.823Z",
"exception": {
"message": "2 UNKNOWN: server returned error 400",
"code": 2,
"details": "server returned error 400",
"metadata": {},
"name": "Error",
"stack": "Error: 2 UNKNOWN: server returned error 400\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 (
+1
I'm getting the same problem, @waha-plus if you can urgently address this issue #
+1
+1
+1
+1
+1