You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicecomb.apache.org by GitBox <gi...@apache.org> on 2020/11/13 04:10:28 UTC

[GitHub] [servicecomb-mesher] wanzirong opened a new issue #135: mode=edge网关调用失败

wanzirong opened a new issue #135:
URL: https://github.com/apache/servicecomb-mesher/issues/135


   mesher.yaml文件:
   mesher:
     ingress:
       type: servicecomb
       rule:
         http: |
           - host: example.com
             apiPath: /sayhello/peter
             service:
               name: RESTServer
   
   service:
   {
     "serviceId": "df61d6a27f81b5d2d7e7a76948d6af34fc40cf2c",
     "appId": "default",
     "serviceName": "RESTServer",
     "version": "0.0.1",
     "level": "BACK",
     "schemas": [
       "RESTServer"
     ],
     "status": "UP",
     "timestamp": "1605178252",
     "alias": "default:RESTServer",
     "modTimestamp": "1605178252",
     "registerBy": "SDK",
     "framework": {
       "name": "Go-Chassis",
       "version": "v2.0.2"
     }
   }
   
   执行命令:
   http_proxy=http://127.0.0.1:30101 curl 'http://example.com/sayhello/peter'
   curl: (52) Empty reply from server
   
   mesher日志:
   {"level":"ERROR","timestamp":"2020-11-13 12:07:08.461 +08:00","file":"handler/transport_handler.go:53","msg":"call err [Get \"http://example.com/sayhello/peter\": http: Request.RequestURI can't be set in client requests]"}
   2020/11/13 12:07:08 http: panic serving 127.0.0.1:54562: invalid WriteHeader code 0
   
   
   不清楚是哪里设置不对,还是执行curl命令不对?
   
   


----------------------------------------------------------------
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



[GitHub] [servicecomb-mesher] tianxiaoliang commented on issue #135: mode=edge网关调用失败

Posted by GitBox <gi...@apache.org>.
tianxiaoliang commented on issue #135:
URL: https://github.com/apache/servicecomb-mesher/issues/135#issuecomment-966939021


   edge模式下,不用设置proxy,因为他是个网关,不是代理


-- 
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: dev-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org