Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

input validation #3

Open
gadicc opened this issue Nov 21, 2022 · 0 comments
Open

input validation #3

gadicc opened this issue Nov 21, 2022 · 0 comments

Comments

@gadicc
Copy link
Collaborator

gadicc commented Nov 21, 2022

e.g. currently with invalid input you might get:

[2022-11-21 16:54:27 +0000] [7] [ERROR] Exception occurred while handling uri: 'http://0.0.0.0:8000/'
Traceback (most recent call last):
  File "handle_request", line 81, in handle_request
    FutureStatic,
  File "server.py", line 36, in inference
    output = user_src.inference(model_inputs)
  File "/app.py", line 173, in inference
    startRequestId = call_inputs.get("startRequestId", None)
AttributeError: 'NoneType' object has no attribute 'get'

not obvious what's going on there unless you know the code well, we should rather emphasize the expected format like we started doing in docker-diffusers-api.

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

No branches or pull requests

1 participant