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
cannot get working external api but internal api is ok #448
Comments
Is there a full exception stack trace from the engine container? |
The reason it comes back as seldon-core/python/seldon_core/model_microservice.py Lines 99 to 100 in da0a2fb
We are rewriting the python wrapper so we can fix that as part of that work |
Is that what you are looking for ?
|
This looks like the JSON returned by your model can't be parsed into a SeldonMessage. |
For example:
This binData has been produce by something like:
I tried also with some code like:
|
The |
I am not. I think it is created by the python code you have showed me upper because there is not binData on my side.
|
Can you clarify what your input payload is? Is it using
|
Closing a solutions exist in latest python code or fix via base64. Please reopen if not appropriate. |
Hey,
I am creating some images with:
If I test this image locally with
docker run -p 5000:5000 my-image:version
I have no problem to call /predict with internal api in order to have a response with a json payload with "strData" and outputting a json in "binData" (I don't understand why it does come as a strData)Then I am creating a deployement in kubeflow with seldon and ksonnet with:
Everything is fine until I call the my-model/api/v0.1/predictions external api.
In the log I have:
For the binData I have also tried by outputting a json but in any case the result of my /predict cannot be transfered to the external with some com.google.protobuf.InvalidProtocolBufferException problems (when outputting json.dumps() I have a problem on length)
Do you have any idea ? I have looked all the examples and I cannot see the obvious reason why it is not working.
Thanks.
The text was updated successfully, but these errors were encountered: