Open 98sean98 opened 11 months ago
Plain text requests are now being rejected by Content type error, and the inference function wrapped by @app.predict simply doesn't get executed.
Content type error
@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
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
.