Skip to content

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

@tonTed

Description

@tonTed

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions