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

Server-side streaming which returns bytes not working #599

Open
PatSos95 opened this issue Oct 7, 2022 · 1 comment
Open

Server-side streaming which returns bytes not working #599

PatSos95 opened this issue Oct 7, 2022 · 1 comment
Labels

Comments

@PatSos95
Copy link

PatSos95 commented Oct 7, 2022

I have a problem with using the server-side streaming service on Evans. This is the error I get:
> call SomeService
command call: json: cannot unmarshal string into Go value of type map[string]interface {}

This is proto definition of service:
rpc SomeService(google.protobuf.Empty) returns (stream google.protobuf.BytesValue);

I've checked it with the service that returns a stream of integers and it was fine, so I think the problem lies with the return value.

@PatSos95 PatSos95 added the bug label Oct 7, 2022
@PatSos95
Copy link
Author

PatSos95 commented Oct 7, 2022

I've checked the same service with grpcurl and it worked

PatSos95 added a commit to PatSos95/evans that referenced this issue Oct 27, 2022
PatSos95 added a commit to PatSos95/evans that referenced this issue Oct 28, 2022
Fix issue ktr0731#599 
With this change when gojson library cannot unmarshal message from server (which is the case for server side streaming of bytes), then it will display it in base64 format.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant