fabric8-analytics-server icon indicating copy to clipboard operation
fabric8-analytics-server copied to clipboard

HTTP code 500 is returned instead of 404 when wrong manifest name is send to stack analysis

Open tisnik opened this issue 6 years ago • 0 comments

Current behavior:

when used sends an improper manifest name (requirements.2.txt instead of requirements.txt) to the stack analysis endpoint, the server responds by:

<Response [500]>
{'error': 'Could not process a29d90f4d8a8470a98e130b33fd4dc74.'}

Expected behavior:

  • parameters to be checked at the beginning of processing
  • HTTP code should be 400 Bad Request not 500 Internal Server Error
  • error message should include the root cause

tisnik avatar Jun 13 '19 04:06 tisnik