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/10 02:18:21 UTC

[GitHub] [servicecomb-mesher] sanzhiyan518 opened a new issue #130: 能用来向华为公有云CSE注册微服务吗?

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


   我想通过servicecomb-mesher向华为公有云注册微服务,配置好ak、sk及服务注册地址后,出现如下错误:
   2020-11-10 10:13:00.964 +08:00 WARN servicecenter/servicecenter.go:36 service [hellompython:0.0.2:proxy_pythonhttp] not exists in registry, register it
   2020-11-10 10:13:01.024 +08:00 ERROR servicecenter/servicecenter.go:39 register service [hellompython:0.0.2:proxy_pythonhttp] failed, err: RegisterService failed, MicroServiceName/responseStatusCode/responsebody: hellompython/401/{"errorCode":"401002","errorMessage":"Request unauthorized","detail":"invalid request, header is invalid, ak sk or project is empty"}
   
   2020-11-10 10:13:01.024 +08:00 ERROR registry/bootstrap.go:95 Register [hellompython] failed: RegisterService failed, MicroServiceName/responseStatusCode/responsebody: hellompython/401/{"errorCode":"401002","errorMessage":"Request unauthorized","detail":"invalid request, header is invalid, ak sk or project is empty"}
   
   2020-11-10 10:13:01.024 +08:00 ERROR registry/registrator.go:78 start backoff for register microservice: RegisterService failed, MicroServiceName/responseStatusCode/responsebody: hellompython/401/{"errorCode":"401002","errorMessage":"Request unauthorized","detail":"invalid request, header is invalid, ak sk or project is empty"}
   我有一个别人编译好的windows下的mesher可以向华为云,版本为mesher-1.4.12-windows-amd64,能否告知原因?


----------------------------------------------------------------
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 #130: 能用来向华为公有云CSE注册微服务吗?

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


   是的,自己做版本分发商


----------------------------------------------------------------
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] zaizailong commented on issue #130: 能用来向华为公有云CSE注册微服务吗?

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


   > mesher默认不支持华为云认证鉴权,所以需要自己维护main.go文件,在第一行加入代码
   > 
   > ```go
   > import _ "github.com/go-chassis/go-chassis-cloud/provider/huawei/engine"
   > ```
   
   使用这个module之后,build时会失败,错误信息:
   `github.com/apache/servicecomb-mesher/proxy/pkg/egress/archaius imports
   	github.com/go-chassis/go-archaius/core: module github.com/go-chassis/go-archaius@latest found (v1.5.3), but does not contain package github.com/go-chassis/go-archaius/core
   github.com/apache/servicecomb-mesher/proxy/pkg/egress/archaius imports
   	github.com/go-chassis/go-archaius/sources/utils: module github.com/go-chassis/go-archaius@latest found (v1.5.3), but does not contain package github.com/go-chassis/go-archaius/sources/utils
   github.com/apache/servicecomb-mesher/proxy/pkg/egress/pilot imports
   	github.com/go-chassis/go-archaius/core/config-manager: module github.com/go-chassis/go-archaius@latest found (v1.5.3), but does not contain package github.com/go-chassis/go-archaius/core/config-manager
   github.com/apache/servicecomb-mesher/proxy/pkg/egress/pilot imports
   	github.com/go-chassis/go-archaius/core/event-system: module github.com/go-chassis/go-archaius@latest found (v1.5.3), but does not contain package github.com/go-chassis/go-archaius/core/event-system
   github.com/apache/servicecomb-mesher/proxy/resource/v1 tested by
   	github.com/apache/servicecomb-mesher/proxy/resource/v1.test imports
   	github.com/go-chassis/go-chassis/core/router/cse: module github.com/go-chassis/go-chassis@latest found (v1.8.3), but does not contain package github.com/go-chassis/go-chassis/core/router/cse`
   
   最后在[官方文档](https://mesher.readthedocs.io/en/latest/development/cloud-provider.html#access-servicecomb-engine-api)找到
   `import _ "github.com/huaweicse/auth/adaptor/gochassis" `
   build 成功,添加完ak、sk之后成功注册上服务


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



[GitHub] [servicecomb-mesher] tianxiaoliang closed issue #130: 能用来向华为公有云CSE注册微服务吗?

Posted by GitBox <gi...@apache.org>.
tianxiaoliang closed issue #130:
URL: https://github.com/apache/servicecomb-mesher/issues/130


   


----------------------------------------------------------------
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] sanzhiyan518 commented on issue #130: 能用来向华为公有云CSE注册微服务吗?

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


   不好意思,我没写go语言,直接用仓库中编译好程序。你的意思是需要修改mesher源代码吗?cmd/mesher/mesher.go加入这行重新编译吗?


----------------------------------------------------------------
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 #130: 能用来向华为公有云CSE注册微服务吗?

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


   mesher默认不支持华为云认证鉴权,所以需要自己维护main.go文件,在第一行加入代码
   ```go
   import _ "github.com/go-chassis/go-chassis-cloud/provider/huawei/engine"
   ```


----------------------------------------------------------------
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] sanzhiyan518 edited a comment on issue #130: 能用来向华为公有云CSE注册微服务吗?

Posted by GitBox <gi...@apache.org>.
sanzhiyan518 edited a comment on issue #130:
URL: https://github.com/apache/servicecomb-mesher/issues/130#issuecomment-724475170


   不好意思,我没写过go语言,直接用的仓库中编译好程序。你的意思是需要修改mesher源代码吗?cmd/mesher/mesher.go加入这行重新编译吗?


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