grpcurl
grpcurl copied to clipboard
endpoint:80/sub is not recognized in grpcurl
Hi, I have a service endpoint as endpoint:80/subgrpc when I pass in whole grpcurl as this:
grpcurl -d '{body}' -H 'authorization: Bearer jwtKey' -plaintext endpoint:80/subgrpc service/serviceName
return log as:
Failed to dial target host "endpoint:80/subgrpc": dial tcp: lookup tcp/80/serviceName: unknown port
Did I wrongly pass anything into the command ?
I have the same problem, our grpc service is reversed-proxied behind a path /grpc (port 443). How can I access that?
Ah I think the reason is that we use grpc over HTTP/2 here so we can use REST paths. I guess grpcurl only support tcp.
This can maybe closed as duplicate of #149
@gunters63 that I'm not sure since I'm a QA, but in some script automation, I got some option to bypass by Node.js: DefaultAuthority Java: OverrideAuthority
Hope this help~