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

Getting "weird server reply" #8

Open
serchavalos opened this issue Mar 10, 2019 · 4 comments
Open

Getting "weird server reply" #8

serchavalos opened this issue Mar 10, 2019 · 4 comments

Comments

@serchavalos
Copy link

Hello!

I tried this service last weekend, when I got the mock server up and running, I tested using cURL and got a "Weird server reply"

curl 'http://localhost:8080/s12.iot.v1.DevicesService/ListDevices' -X POST -I
curl: (8) Weird server reply

Do you know if there something obvious I'm skipping?

Cheers!

@YoshiyukiKato
Copy link
Owner

@serchavalos Hi. I assume that curl does not have function to talk with gRPC server by http.

@serchavalos
Copy link
Author

@YoshiyukiKato yes, you are right. I'm using https://github.com/grpc/grpc-web/ and thus communicates over http. my bad.

Thanks anyway

@YoshiyukiKato
Copy link
Owner

@serchavalos OK, I see. Could you show me your server app code? I never use grpc-web with grpc-mock.

@serchavalos
Copy link
Author

@YoshiyukiKato, unfortunately, I don't have an example, but the server code is written in Go. The client in the browser which is produced by grpc-web from the proto files that these two pieces share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants