We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Content type error
Plain text requests are now being rejected by Content type error, and the inference function wrapped by @app.predict simply doesn't get executed.
@app.predict
For example, sending a curl request:
curl -X POST http://localhost:4000/predict -H 'Content-Type: text/plain' -d 'hello world'
returns
But
curl -X POST http://localhost:4000/predict -H 'Content-Type: application/json' -d '{}'
executes the inference function with an expected output.
This is without any change to the inference function.
This problem only surfaced in version 0.1.0 but not 0.0.5.
0.1.0
0.0.5
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Plain text requests are now being rejected by
Content type error
, and the inference function wrapped by@app.predict
simply doesn't get executed.For example, sending a curl request:
returns
But
executes the inference function with an expected output.
This is without any change to the inference function.
This problem only surfaced in version
0.1.0
but not0.0.5
.The text was updated successfully, but these errors were encountered: