Bug: POST /api/messages returns 500 with valid thread_id #46
Labels
No labels
meeting-notes
meeting-sensitive
meeting-transcript
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
coopcloud_code/home#46
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
The generic message send endpoint
POST /api/messagesreturns HTTP 500 when called with a validthread_idandcontentbody.Expected
HTTP 200/201 — message sent to thread.
Actual
HTTP 500 — server error.
Context
Discovered during mycelium_code/home#45 test coverage work. The
SendMessageRequeststruct expectsthread_id+content(JSON). The per-thread endpointPOST /api/messages/threads/:id/messagesworks correctly.Test:
messaging_ssh_integration.shandapi_integration.sh— both accept 500 as "endpoint exists, backend bug tracked".— mik-tf
Not a backend bug — the test was extracting
data.thread_idbut the response nests it atdata.thread.thread_id. Fixed in deploy repo commit be29ccd.The
POST /api/messagesendpoint works correctly with a valid OSIS SID.— mik-tf