Something went wrong while setting issue due date.
Improve error messaging on 400
Closed
Improve error messaging on 400
We were debugging a 400 error which was caused by a trailing comma in the post body. Was hard to spot and the error message was really opaque. Would be nice to catch this and return an error saying the body was invalid JSON.
def post(self):
args = request.get_json()
errors = self.schema.validate(args)
if errors:
abort(400, message=str(errors))
I assume it's actually aborting 400 at the args = request.get_json()
line so it would need a try/except around there in each endpoint
added Partner::NOC Status::Sprint Backlog Weight::2 labels
changed milestone to %SoAR-2023W09
assigned to @jamki
added Status::In Review label and removed Status::Sprint Backlog label
mentioned in merge request !17 (merged)
mentioned in commit c6a34801
closed via merge request !17 (merged)
Please register or sign in to reply