-
Bug
-
Resolution: Done
-
Minor
-
None
-
None
Description
If an application sends back an error through the internal API, and the incoming body doesn't have the expected keys, or has an empty JSON object "{}", the export service crashes.
Steps to reproduce
1. Spin up the export service.
2. Modify the "example_export_error.json" file to be an empty JSON object "{}".
3. Issue the "make sample-request-internal-error" command.
Expected behavior.
The service should return an 400 error instead, explaining that the payload is unexpected or invalid.
- is related to
-
RHCLOUD-26500 Investigate failures while sending data to the export service
- Closed