Skip to content

[monitor, theia] monitor service incorrectly responds with 200 if the request body is malformed #431

Description

@kittaakos

Describe the bug

The response ends earlier before setting the 400 status code:

res.end("Body missing 'level' or 'message' fields");
res.status(400);

Expected behavior

POST /monitor/message responds with 400 if the request body is invalid

Cluster provider

No response

Version

No response

Additional information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions