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

com.google.protobuf.InvalidProtocolBufferException: com.google.gson.stream.MalformedJsonException: Unterminated array at line 1 column 32772 path $.data.ndarray[1] at io.seldon.engine.pb.JsonFormat$ParserImpl.merge(JsonFormat.java:1132) ~[classes!/:0.5.1-SNAPSHOT] at io.seldon.engine.pb.JsonFormat$Parser.merge(JsonFormat.java:313) #1680

Closed
divyadilip91 opened this issue Apr 10, 2020 · 3 comments
Labels
bug triage Needs to be triaged and prioritised accordingly

Comments

@divyadilip91
Copy link

Hi Clive,
I am getting this issue when I am trying to pass a base64 string as input .

{'data': {'names': [],
'ndarray': [["base64 string"]]}}.
I have seldon 0.5.2 installed on my google kubernetes engine.

I get the following response json back
{'status': {'code': 201,
'info': '{"data": {"names": [], "ndarray": ["base64 string"],
'reason': 'Invalid JSON',
'status': 'FAILURE'}}

Kindly help.

@divyadilip91 divyadilip91 added bug triage Needs to be triaged and prioritised accordingly labels Apr 10, 2020
@ukclivecox
Copy link
Contributor

strange. {"data": {"names": [], "ndarray": ["base64 string"] does seem to be invalid.

I would also suggest upgrading to 1.0.2 of Seldon if possible.

@divyadilip91
Copy link
Author

Oh is the json format invalid? What would be the correct format?The base64 string is that of an image that I give as input.
Yes I am planning to upgrade to 1.0.2..
Would replacing the old container image with the new one do the upgrade or I need to do uninstall the old one and start the installation from beginning?. I couldnt find any docs that describe the upgrade process. Please suggest

@ukclivecox
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug triage Needs to be triaged and prioritised accordingly
Projects
None yet
Development

No branches or pull requests

2 participants