NicolasConstant / sengi

Mastodon & Pleroma Multi-account Desktop Client
https://nicolasconstant.github.io/sengi/
GNU Affero General Public License v3.0
524 stars 34 forks source link

422 error drops upstream error message #561

Closed disconn3ct closed 1 year ago

disconn3ct commented 1 year ago

When creating a poll with >50 chars in an entry, the UI pops up a 422 error with no information: Http failure response for https://HOST/api/v1/statuses: 422 Unprocessable Entity

The response includes a specific reason:

{"error":"Validation failed: Choices cannot be longer than 50 characters each"}

Could that be surfaced to the user?