Pre-flight
OpenWA version
OpenWA v0.8.7
Deployment
Docker Compose
Database
SQLite (default)
WhatsApp engine
whatsapp-web.js
What happened?
Description
The endpoint GET /api/sessions/{sessionId}/channels/{channelId}/messages
returns an empty array [] with HTTP 200, even though the target channel
(newsletter) contains many messages. No error is thrown — the response is
simply empty.
Version
OpenWA v0.8.7
Steps to Reproduce
- Have a session subscribed to a WhatsApp channel (newsletter).
- Confirm the channel appears in
GET /channels (it does, with correct name/id).
- Confirm the channel has messages (visible in the WhatsApp app).
- Call
GET /api/sessions/{sessionId}/channels/{channelId}/messages
with a valid X-API-Key.
Expected Behavior
The endpoint should return the list of channel messages
(as documented: "List of channel messages").
Actual Behavior
- Status:
200 OK
- Response body:
[]
- Response header:
content-length: 2
The array is always empty regardless of limit value or channel.
Additional Context
GET /channels works correctly and lists all subscribed channels.
- The same channel messages ARE retrievable through a different WhatsApp
API gateway (Evolution API) using the same session/account, which
suggests the messages exist and are accessible — the issue appears
specific to this endpoint's implementation.
- Engine: whatsapp-web.js (default ENGINE_TYPE).
Environment
- OpenWA version: 0.8.7
- Engine: whatsapp-web.js
- Deployment: self-hosted (Docker / [укажите ваше])
Steps to reproduce
Description
The endpoint GET /api/sessions/{sessionId}/channels/{channelId}/messages
returns an empty array [] with HTTP 200, even though the target channel
(newsletter) contains many messages. No error is thrown — the response is
simply empty.
Version
OpenWA v0.8.7
Steps to Reproduce
- Have a session subscribed to a WhatsApp channel (newsletter).
- Confirm the channel appears in
GET /channels (it does, with correct name/id).
- Confirm the channel has messages (visible in the WhatsApp app).
- Call
GET /api/sessions/{sessionId}/channels/{channelId}/messages
with a valid X-API-Key.
Expected Behavior
The endpoint should return the list of channel messages
(as documented: "List of channel messages").
Actual Behavior
- Status:
200 OK
- Response body:
[]
- Response header:
content-length: 2
The array is always empty regardless of limit value or channel.
Additional Context
GET /channels works correctly and lists all subscribed channels.
- The same channel messages ARE retrievable through a different WhatsApp
API gateway (Evolution API) using the same session/account, which
suggests the messages exist and are accessible — the issue appears
specific to this endpoint's implementation.
- Engine: whatsapp-web.js (default ENGINE_TYPE).
Environment
- OpenWA version: 0.8.7
- Engine: whatsapp-web.js
- Deployment: self-hosted (Docker / [укажите ваше])
Expected behavior
No response
Relevant logs
Environment / additional context
No response
Pre-flight
OpenWA version
OpenWA v0.8.7
Deployment
Docker Compose
Database
SQLite (default)
WhatsApp engine
whatsapp-web.js
What happened?
Description
The endpoint
GET /api/sessions/{sessionId}/channels/{channelId}/messagesreturns an empty array
[]with HTTP 200, even though the target channel(newsletter) contains many messages. No error is thrown — the response is
simply empty.
Version
OpenWA v0.8.7
Steps to Reproduce
GET /channels(it does, with correct name/id).GET /api/sessions/{sessionId}/channels/{channelId}/messageswith a valid
X-API-Key.Expected Behavior
The endpoint should return the list of channel messages
(as documented: "List of channel messages").
Actual Behavior
200 OK[]content-length: 2The array is always empty regardless of
limitvalue or channel.Additional Context
GET /channelsworks correctly and lists all subscribed channels.API gateway (Evolution API) using the same session/account, which
suggests the messages exist and are accessible — the issue appears
specific to this endpoint's implementation.
Environment
Steps to reproduce
Description
The endpoint
GET /api/sessions/{sessionId}/channels/{channelId}/messagesreturns an empty array
[]with HTTP 200, even though the target channel(newsletter) contains many messages. No error is thrown — the response is
simply empty.
Version
OpenWA v0.8.7
Steps to Reproduce
GET /channels(it does, with correct name/id).GET /api/sessions/{sessionId}/channels/{channelId}/messageswith a valid
X-API-Key.Expected Behavior
The endpoint should return the list of channel messages
(as documented: "List of channel messages").
Actual Behavior
200 OK[]content-length: 2The array is always empty regardless of
limitvalue or channel.Additional Context
GET /channelsworks correctly and lists all subscribed channels.API gateway (Evolution API) using the same session/account, which
suggests the messages exist and are accessible — the issue appears
specific to this endpoint's implementation.
Environment
Expected behavior
No response
Relevant logs
Environment / additional context
No response