[BUG] POST /v1/participants returns unclear error for malformed JSON #1545
bug
Description
POST /v1/participants returns a nested parser error when the request body contains malformed JSON.
Current behavior
Expected behavior
💬 Comments (1)
🔄 Auto-synced from Issue #1545 every hour.
There are now three open PRs for this issue, all changing the same line in
decentralized-api/internal/server/public/post_participant_handler.go. Listing them side by side so one can be picked and the others closed:"Invalid request body"+.SetInternal(err)(keeps the original error for logs)"Invalid request body""Invalid request body"1546 does not reference this issue in its description, which is probably why the later two were opened.
This is a comparison of the diffs only; I did not run the tests of #1865 or #1678.