serve icon indicating copy to clipboard operation
serve copied to clipboard

Inference call with bogus version gives 500 instead of 404

Open fbbradheintz opened this issue 6 years ago • 5 comments

If I put up version 1.0 of a model called r18, the following happens:

  • If I call curl -X POST http://localhost:8080/predictions/r18/1.0 -T kitten.jpg, I get a 200 and an inference result. (This is correct.)
  • If I call curl -X POST http://localhost:8080/predictions/r18/1.2 -T kitten.jpg, I get a 404 - the model can't be found. (This is correct.)
  • If I call curl -X POST http://localhost:8080/predictions/r18/1p0 -T kitten.jpg, I get:
{
  "code": 500,
  "type": "NumberFormatException",
  "message": "For input string: \"1p2\""
}

This should be a 404.

fbbradheintz avatar Apr 07 '20 16:04 fbbradheintz

This may be related to the current state of issue #43 and PR #151. Will re-check with this PR.

fbbradheintz avatar Apr 07 '20 16:04 fbbradheintz

@fbbradheintz : This has already been taken care with #151, Along with UT for this use case. Can we close this ticket?

harshbafna avatar Apr 10 '20 03:04 harshbafna

@fbbradheintz This is already fixed in master. Can we close this ticket?

harshbafna avatar Apr 30 '20 08:04 harshbafna

@lokeshgupta1975 @mycpuorg : The corresponding PR is already merged in the master branch. We can close this ticket.

harshbafna avatar Jun 01 '20 05:06 harshbafna

Related PR has been merged hence closing this.

codinnvrends avatar Jun 10 '20 03:06 codinnvrends