Response deserialize error
See original GitHub issueHi, We are trying to use streams with a net core backend but getting deserialize error
"method":string"###"
"error":{2 items
"code":int2
"message":string"Error in response deserializer function."
}
}
protoc is version 3.14.0 grpc-web-gen is 1.2.1
command to generate the client is: protoc -I=./protos ./protos/*.proto --js_out=import_style=commonjs,binary:./dist --grpc-web_out=import_style=commonjs+dts,mode=grpcwebtext:./dist
We successfully connect to the endpoint and retrieve the data and the call fails on tying to use response.getMessage() Since there is no other error message and debugging is not very straightforward any insight on what could cause this error would be welcome 😃
thank you
Issue Analytics
- State:
- Created 3 years ago
- Comments:8
Top Results From Across the Web
Error deserializing a JSON response - MSDN - Microsoft
g. [1,2,3]) to deserialize correctly. To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized...
Read more >"Could not deserialize service response" error when ...
The issue is caused if the environment is not properly configured to host Sitefinity projects. ... The issue is caused by an incorrect...
Read more >deserialize json into my C# object gives error - Stack Overflow
I get such JSON and want to deserialize it into my C# object. But this ends up in an error that cannot deserialize....
Read more >REST API error handling in C# : GameSparks
The problem is that I have to use a library to deserialize the json response from string to a class. I would like...
Read more >Partial deserialize JSON - OutSystems
The error says "Failed to deserialize JSON to BatchResponses_All: Unexpected character encountered while parsing value: {. Path 'responses' ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I got the same error with gRPC Web because I copied the example without realizing
getMessage()
was not part of the framework API, but amessage
string field in the example Protobuf definition.Try using response directly (or serializing it with
toObject()
)This fixed the issue for me. Downgraded to 3.13.0, which was released before protoc-gen-grpc 1.2.1