encore icon indicating copy to clipboard operation
encore copied to clipboard

Issue with EncoreTS API Explorer - Empty JSON body causes 400 error

Open tonTed opened this issue 10 months ago • 1 comments

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.

Image

Image

tonTed avatar Apr 24 '25 17:04 tonTed

I can't reproduce this issue. If you are able to, please share a small reproducer.

marcuskohlberg avatar May 19 '25 12:05 marcuskohlberg