Skip to content

Calling Signal entity HTTP API fails with content-type=application/json #346

Open
@timothyvries

Description

@timothyvries

Context

In the http api documentation for signalling a durable entity it is stated that the request content (payload) should be JSON-formatted, implying that the Content-Type should be application/json.
Calling the API using this Content-Type=applicaton/json will throw an error in the get_input() function of the Durable entity context with the error "the JSON object must be str, bytes or bytearray, not dict"

How to reproduce

Call the API using Content-Type = application/json

Workaround

Call the API using Content-Type = text/plain

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Priority 2bugSomething isn't workingdocumentationAbout documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions