whioue opened a new issue #5147:
URL: https://github.com/apache/apisix/issues/5147


   ### Issue description
   
   How to use grpcs?
   
   I try to add scheme as grpcs in the upstream and use the grpc provided by 
api7/grpc_server_example, configure nodes: {"127.0.0.1": 50052},
   
   The request is as follows:
   
   grpcurl -insecure -import-path ./proto -proto helloworld.proto -d 
'{"name":"apisix"}' 127.0.0.1:9443 helloworld.Greeter.SayHello
   
   Errors are reported as follows:
   
   Failed to dial target host "127.0.0.1:9443": context deadline exceeded
   
   When I use scheme as grpc upstream and configure nodes: {"127.0.0.1": 
50051}, I can succeed and get the results
   
   ### Environment
   
   - apisix version (cmd: `apisix version`): version 2.8
   - OS (cmd: `uname -a`): centos7
   - OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
   - etcd version, if have (cmd: run `curl 
http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
   - apisix-dashboard version, if have:
   - the plugin runner version, if the issue is about a plugin runner (cmd: 
depended on the kind of runner):
   - luarocks version, if the issue is about installation (cmd: `luarocks 
--version`):
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to