Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Log when we get an invalid body on certain CS-API requests #13386

Closed
wants to merge 1 commit into from

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Jul 26, 2022

Some endpoints currently accept an invalid JSON object in the request body,
which we should stop. As a starting point, let's log when it happens so that we
can fix it.

@richvdh richvdh requested a review from a team as a code owner July 26, 2022 10:16
Some endpoints currently accept an invalid JSON object in the request body,
which we should stop. As a starting point, let's log when it happens so that we
can fix it.
Copy link
Contributor

@squahtx squahtx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

It looks like parse_json_value_from_request already logs malformed JSON.
Is the intent to log when we receive valid JSON that's not a dict?

@richvdh
Copy link
Member Author

richvdh commented Jul 26, 2022

oh, hrm, I'd failed to grasp that. let me have another look.

@richvdh
Copy link
Member Author

richvdh commented Jul 26, 2022

yeah, I don't need this. Sorry about the noise!

@richvdh richvdh closed this Jul 26, 2022
@richvdh
Copy link
Member Author

richvdh commented Jul 26, 2022

cf #13388

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants