encore
encore copied to clipboard
Issue with EncoreTS API Explorer - Empty JSON body causes 400 error
I’ve encountered an issue with the Encore API Explorer when calling a POST endpoint that expects a JSON body with optional fields. When I send an empty body ({}) through the API Explorer, the request fails with this error:
HTTP 400 Bad Request: unable to decode request body: EOF while parsing a value at line 1 column 0
However, when I call the same endpoint using curl or the generated API client, it works perfectly with the same empty body.
I can't reproduce this issue. If you are able to, please share a small reproducer.