You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/02/21 06:23:02 UTC

[GitHub] [incubator-apisix] Iflengmo opened a new issue #1144: request help: apisix代理grpc问题

Iflengmo opened a new issue #1144: request help: apisix代理grpc问题
URL: https://github.com/apache/incubator-apisix/issues/1144
 
 
   ### Issue description
   apisix代理grpc服务
   准备了apisix给的grpc示例服务,设置好路由
   curl http://127.0.0.1:9080/apisix/admin/routes/1 -X PUT -d '
   {
       "methods": ["POST", "GET"],
       "uri": "/helloworld.Greeter/SayHello",
       "service_protocol": "grpc",
       "upstream": {
           "type": "roundrobin",
           "nodes": {
               "127.0.0.1:50051": 1
           }
       }
   }'
   自己openssl做了pem格式的cert和key,添加了证书,sni这个参数这里如何设置?
   自定义设置了foo.com
   grpcurl -insecure -import-path ./proto  -proto helloworld.proto  \
       -d '{"name":"apisix"}' 127.0.0.1:9443 helloworld.Greeter.SayHello
   按照文档上说的来访问,结果是
   ERROR:
     Code: Internal
     Message: transport: received the unexpected content-type "text/html"
   将127.0.0.1改为了foo.com访问,结果依旧是这样的。
   ### Environment
   
   * apisix version (cmd: `apisix version`):1.0
   * OS:centos7.2
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-apisix] nic-chen closed issue #1144: request help: fail to proxy grpc request

Posted by GitBox <gi...@apache.org>.
nic-chen closed issue #1144: request help:  fail to proxy grpc request
URL: https://github.com/apache/incubator-apisix/issues/1144
 
 
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-apisix] membphis commented on issue #1144: request help: fail to proxy grpc request

Posted by GitBox <gi...@apache.org>.
membphis commented on issue #1144: request help:  fail to proxy grpc request
URL: https://github.com/apache/incubator-apisix/issues/1144#issuecomment-589523554
 
 
   @nic-chen do you know the reason about this issue ?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-apisix] nic-chen commented on issue #1144: request help: fail to proxy grpc request

Posted by GitBox <gi...@apache.org>.
nic-chen commented on issue #1144: request help:  fail to proxy grpc request
URL: https://github.com/apache/incubator-apisix/issues/1144#issuecomment-591419482
 
 
   抱歉,我这边没能够重现这个问题。
   
   Travis每次都会跑这个基础用例,应该不至于有问题:https://github.com/apache/incubator-apisix/blob/master/t/grpc-proxy-test.sh
   
   你可以把Apache APISIX的log贴上来,看看gRPC服务有没有输出什么内容。
   
   
   
   Sorry, I can't reproduce this issue.
   
   Travis runs this test case every time, and it should not be a problem: https: //github.com/apache/incubator-apisix/blob/master/t/grpc-proxy-test.sh
   
   You can upload the Apache APISIX log and see if the gRPC server outputs anything.
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-apisix] nic-chen commented on issue #1144: request help: fail to proxy grpc request

Posted by GitBox <gi...@apache.org>.
nic-chen commented on issue #1144: request help:  fail to proxy grpc request
URL: https://github.com/apache/incubator-apisix/issues/1144#issuecomment-605543060
 
 
   duplicate issue with  #1209
   
   close. 

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services