bug: 422 Unprocessable on sending file #117

Open
opened 2026-02-16 12:51:29 -05:00 by yindo · 2 comments
Owner

Originally created by @t-lessy on GitHub (Aug 15, 2025).

What happened?

Sending image in any chat gives 422 error in console.
Cannot add any profile picture or attachment.

Image

What I already did

  • Tried to forward api and Autumn through separate subdomains AND sub-locations.
  • Tried to use newest tagged API image.
  • Tried to change paths to Revolt pieces in Revolt.toml.
  • Tried to change "production" option in Revolt.toml.

Thanks for your work! I'll try my best to help you reproduce and fix this issue. Whether it's a real bug or just an error on my side. ^^

Originally created by @t-lessy on GitHub (Aug 15, 2025). ### What happened? Sending image in any chat gives 422 error in console. Cannot add any profile picture or attachment. <img width="2560" height="1309" alt="Image" src="https://github.com/user-attachments/assets/380d74cf-25d6-4917-a244-f8ae8b3997c9" /> ### What I already did - Tried to forward api and Autumn through separate subdomains AND sub-locations. - Tried to use newest tagged API image. - Tried to change paths to Revolt pieces in Revolt.toml. - Tried to change "production" option in Revolt.toml. Thanks for your work! I'll try my best to help you reproduce and fix this issue. Whether it's a real bug or just an error on my side. ^^
yindo added the bug label 2026-02-16 12:51:29 -05:00
Author
Owner

@t-lessy commented on GitHub (Aug 15, 2025):

api-1  |  INFO  rocket::server                                                   > POST /channels/01K2MFE9TA3FD73HNQGAM4XQ4X/messages application/json:
api-1  |  INFO  rocket::server::_                                                > Matched: (message_send) POST /channels//messages
api-1  |  WARN  revolt_delta::routes::channels::message_send::_                  > Data guard `Json < v0 :: DataMessageSend >` failed: Parse("{\"content\":\"\",\"nonce\":\"01K2REEDS6FB0CCA56AHNX8T0C\",\"replies\":[],\"attachments\":[null]}", Error("invalid type: null, expected a string", line: 1, column: 83)).
api-1  |  INFO  rocket::server::_                                                > Outcome: Error(422 Unprocessable Entity)
api-1  |  WARN  rocket::server::_                                                > No 422 catcher registered. Using Rocket default.
api-1  |  INFO  rocket::server::_                                                > Response succeeded.

showing.txt
The configuration file. Cannot add toml file directly :(

compose.txt
Docker Compose

@t-lessy commented on GitHub (Aug 15, 2025): ```Docker log api-1 | INFO rocket::server > POST /channels/01K2MFE9TA3FD73HNQGAM4XQ4X/messages application/json: api-1 | INFO rocket::server::_ > Matched: (message_send) POST /channels//messages api-1 | WARN revolt_delta::routes::channels::message_send::_ > Data guard `Json < v0 :: DataMessageSend >` failed: Parse("{\"content\":\"\",\"nonce\":\"01K2REEDS6FB0CCA56AHNX8T0C\",\"replies\":[],\"attachments\":[null]}", Error("invalid type: null, expected a string", line: 1, column: 83)). api-1 | INFO rocket::server::_ > Outcome: Error(422 Unprocessable Entity) api-1 | WARN rocket::server::_ > No 422 catcher registered. Using Rocket default. api-1 | INFO rocket::server::_ > Response succeeded. ``` [showing.txt](https://github.com/user-attachments/files/21807011/showing.txt) The configuration file. Cannot add toml file directly :( [compose.txt](https://github.com/user-attachments/files/21807018/compose.txt) Docker Compose
Author
Owner

@t-lessy commented on GitHub (Aug 18, 2025):

Seems like Revolt catches nothing. In logs there is "null" value instead of string. Found it while working, kinda nooby myself, thanks for my collegue.)

@t-lessy commented on GitHub (Aug 18, 2025): Seems like Revolt catches nothing. In logs there is "null" value instead of string. Found it while working, kinda nooby myself, thanks for my collegue.)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: stoatchat/self-hosted#117