Skip to content

REST request response fails if no object. #392

@rjamesnw

Description

@rjamesnw

Describe the bug
A REST response does not have to have data. Sometimes a 200 response is all that is needed. N8N by default sets the response to 200 and no data. Currently, the success event is never triggered on the REST node until I set N8N to respond with an empty object.

To Reproduce
Steps to reproduce the behavior:

Straightforward.

Expected behavior
An API that response with no data should still trigger success or failure based on codes alone.

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