You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2020/05/17 04:47:07 UTC
[GitHub] [servicecomb-service-center] qiuqiu520-love opened a new issue #644: servicecomb 服务无法注册
qiuqiu520-love opened a new issue #644:
URL: https://github.com/apache/servicecomb-service-center/issues/644
注册中心配置已配置无限制模式,服务能成功启动,但是注册不到服务中心。
异常信息:
{"errorCode":"400001","errorMessage":"Invalid parameter(s)","detail":"http: request body too large"}
----------------------------------------------------------------
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-service-center] little-cui closed issue #644: servicecomb 服务无法注册
Posted by GitBox <gi...@apache.org>.
little-cui closed issue #644:
URL: https://github.com/apache/servicecomb-service-center/issues/644
--
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-service-center] myVictor commented on issue #644: servicecomb 服务无法注册
Posted by GitBox <gi...@apache.org>.
myVictor commented on issue #644:
URL: https://github.com/apache/servicecomb-service-center/issues/644#issuecomment-680412569
> 大的 body ,容易导致 DOS 攻击。 所以尽可能不要超过这个限
正解,但是老系统代码太多了。每个都要手动写,有没有其他有效方法?
----------------------------------------------------------------
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-service-center] little-cui commented on issue #644: servicecomb 服务无法注册
Posted by GitBox <gi...@apache.org>.
little-cui commented on issue #644:
URL: https://github.com/apache/servicecomb-service-center/issues/644#issuecomment-856893667
新版本2.0.0已发布,请使用
--
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-service-center] liubao68 commented on issue #644: servicecomb 服务无法注册
Posted by GitBox <gi...@apache.org>.
liubao68 commented on issue #644:
URL: https://github.com/apache/servicecomb-service-center/issues/644#issuecomment-663464586
service center 默认限制注册的 body 大小为 5K , 这个太小了, 建议 service center 提供配置项, 允许用户定制大小。
----------------------------------------------------------------
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-service-center] liubao68 edited a comment on issue #644: servicecomb 服务无法注册
Posted by GitBox <gi...@apache.org>.
liubao68 edited a comment on issue #644:
URL: https://github.com/apache/servicecomb-service-center/issues/644#issuecomment-663337929
这种情况通常发生在将其他框架的代码修改为 java-chassis的情况, 比如使用 @RestController 的 spring mvc 服务。 java-chassis 默认的标签是 @RestSchema 或者 @RpcSchema, 要求指定可阅读的 schema id。 但是为了支持老系统改造, 也支持扫描 @RestController, schema id 是默认自动生成的, 就比较长了。 建议自定 schema id, 这样有个好处, 就是 java-chassis 的所有治理功能, 多数都支持对于 schema/operation生效,简单的名字可以让这些配置更加简单。
比如限流配置 : `servicecomb.flowcontrol.Provider.qps.limit.[ServiceName].[Schema].[operation]`
SC 限制 body 大小为 2M, 这个一般是处于安全考虑, 更大的 body ,容易导致 DOS 攻击。 所以尽可能不要超过这个限制。
----------------------------------------------------------------
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-service-center] liubao68 commented on issue #644: servicecomb 服务无法注册
Posted by GitBox <gi...@apache.org>.
liubao68 commented on issue #644:
URL: https://github.com/apache/servicecomb-service-center/issues/644#issuecomment-663337929
这种情况通常发生在将其他框架的代码修改为 java-chassis的情况, 比如使用 @RestController 的 spring mvc 服务。 java-chassis 默认的标签是 @RestSchema 或者 @RpcSchema, 要求指定可阅读的 schema id。 但是为了支持老系统改造, 也支持扫描 @RestController, schema id 是默认自动生成的, 就比较长了。 建议自定 schema id, 这样有个好处, 就是 java-chassis 的所有治理功能, 多数都支持对于 schema/operation生效,简单的名字可以让这些配置更加简单。
比如限流配置 : `servicecomb.flowcontrol.Provider.qps.limit.[ServiceName].[Schema].[operation]`
----------------------------------------------------------------
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-service-center] myVictor commented on issue #644: servicecomb 服务无法注册
Posted by GitBox <gi...@apache.org>.
myVictor commented on issue #644:
URL: https://github.com/apache/servicecomb-service-center/issues/644#issuecomment-629924592
服务中心日志:ERROR v4/microservice_controller.go:53 read body failed {"error": "http: request body too large"}
----------------------------------------------------------------
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-service-center] qiuqiu520-love commented on issue #644: servicecomb 服务无法注册
Posted by GitBox <gi...@apache.org>.
qiuqiu520-love commented on issue #644:
URL: https://github.com/apache/servicecomb-service-center/issues/644#issuecomment-629743160

----------------------------------------------------------------
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-service-center] liubao68 commented on issue #644: servicecomb 服务无法注册
Posted by GitBox <gi...@apache.org>.
liubao68 commented on issue #644:
URL: https://github.com/apache/servicecomb-service-center/issues/644#issuecomment-712121207
好像已经改了: https://github.com/apache/servicecomb-service-center/pull/673
----------------------------------------------------------------
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-service-center] myVictor commented on issue #644: servicecomb 服务无法注册
Posted by GitBox <gi...@apache.org>.
myVictor commented on issue #644:
URL: https://github.com/apache/servicecomb-service-center/issues/644#issuecomment-629918136
抓包注册信息:
{
"service": {
"serviceId": null,
"framework": {
"name": "servicecomb-java-chassis",
"version": "ServiceComb:1.3.0"
},
"registerBy": "SDK",
"environment": "development",
"appId": "cxisoft",
"serviceName": "tkcust",
"alias": null,
"version": "1.0.0",
"description": null,
"level": "FRONT",
"schemas": ["com.cz073586.tuokebusiness.controller.admin.JzxGxInfoController", "com.cz073586.tuokebusinesshis.controller.index.OrderHistoryChangeIndexController", "com.cz073586.tuokebusiness.controller.index.OfficeWorkrToGcIndexController", "com.cz073586.tuokebusiness.controller.admin.SijiWorkInfoController", "com.cz073586.tuokebusiness.controller.admin.MatouInfoController", "com.cz073586.tuokebusiness.controller.index.CustAreaInfoIndexController", "com.cz073586.tuokebusiness.controller.index.OrderRuntimeIndexController", "com.cz073586.tuokebusiness.controller.index.SijiWorkInfoIndexController", "com.cz073586.tuokebusiness.controller.index.OrderRuntimeChangeIndexController", "com.cz073586.tuokebusiness.controller.index.SijiPaymentTypeIndexController", "com.cz073586.tuokebusiness.controller.index.SijiTixianIndexController", "com.cz073586.tuokebusinesshis.controller.admin.OrderHistoryController", "com.cz073586.tuokebusiness.controller.index.OfficeWorkerIndexController", "com.cz073586.tuokebusiness.controller.admin.SijiXyValueController", "com.cz073586.tuokebusinesshis.controller.admin.OrderHistoryStatusItemsController", "com.cz073586.tuokebusiness.controller.index.StatisticsWithKhInfoIndexController", "com.cz073586.tkcustex.controller.admin.CoustomerInfoTuokeController", "com.cz073586.tuokebusiness.controller.admin.StatisticsWithYyInfoController", "com.cz073586.tkcustex.controller.admin.OrderCostItemBusiExController", "com.cz073586.tuokebusiness.controller.admin.OrderCostItemController", "com.cz073586.tuokeandroid.controller.index.SijiWorkInfoApiController", "com.cz073586.tuokebusiness.controller.index.SmsCodeIndexController", "com.cz073586.tuokebusiness.controller.admin.StatisticsWithKhInfoController", "com.cz073586.tuokebusiness.controller.index.PlaceCfgInfoIndexController", "com.cz073586.tuokebusiness.controller.index.WharfInfoIndexController", "com.cz073586.tkcustex.controller.index.CoustomerInfoTuokeIndexController", "com.cz073586.tuokebusiness.controller.index.MatouInfoIndexController", "com.cz073586.tkcustex.controller.admin.OrderHisBusiExController", "com.cz073586.tuokebusiness.controller.index.HelpInfoIndexController", "com.cz073586.tuokebusiness.controller.admin.SijiPaymentTypeController", "com.cz073586.tuokebusiness.controller.api.SijiPaymentTypeApiController", "com.cz073586.tuokebusiness.controller.admin.SijiInfoController", "com.cz073586.tuokebusinesshis.controller.admin.OrderHistoryChangeController", "com.cz073586.tuokebusiness.controller.admin.PlaceCfgInfoController", "com.cz073586.tuokebusiness.controller.admin.SmsCodeController", "com.cz073586.tuokebusiness.controller.admin.CustGcInfoController", "com.cz073586.tuokebusiness.controller.admin.OrderRuntimeChangeController", "com.cz073586.tuokebusiness.controller.index.CustGcInfoIndexController", "com.cz073586.tuokebusiness.controller.index.YyExportHeaderInfoIndexController", "com.cz073586.tuokebusiness.controller.admin.HelpInfoController", "com.cz073586.tuokebusiness.controller.admin.OrderRuntimeController", "com.cz073586.tuokebusiness.controller.admin.SijiChargeController", "com.cz073586.tuokebusiness.controller.admin.WharfInfoController", "com.cz073586.tuokebusiness.controller.admin.YyExportHeaderInfoController", "com.cz073586.tuokebusiness.controller.index.StatisticsWithYyIndexController", "com.cz073586.tuokebusiness.controller.index.OrderRuntimeStatusItemsIndexController", "com.cz073586.tuokebusiness.controller.index.JzxGxInfoIndexController", "com.cz073586.tuokebusiness.controller.admin.OfficeWorkrToGcController", "com.cz073586.tuokebusiness.controller.index.YunfeiInfoIndexController", "com.cz073586.tuokebusiness.controller.admin.OrderRuntimeStatusItemsController", "com.cz073586.tuokebusiness.controller.index.OrderCostItemIndexController", "com.cz073586.tuokebusinesshis.controller.index.OrderHistoryIndexController", "com.cz073586.tuokebusiness.controller.admin.YunfeiInfoController", "com.cz073586.tuokebusinesshis.controller.index.OrderHistoryStatusItemsIndexController", "com.cz073586.tuokebusiness.controller.admin.SijiMapCustController", "com.cz073586.tkcustex.controller.admin.StationBusiController", "com.cz073586.tuokebusiness.controller.admin.JzxWeightInfoController", "com.cz073586.tuokebusiness.controller.admin.CustAreaInfoController", "com.cz073586.tuokeandroid.controller.index.TestPushController", "com.cz073586.tuokebusiness.controller.admin.OfficeWorkerController", "com.cz073586.tuokebusiness.controller.index.SijiMapCustIndexController", "com.cz073586.tuokebusiness.controller.index.SijiChargeIndexController", "com.cz073586.tuokebusiness.controller.admin.SijiTixianController", "com.cz073586.tuokebusiness.controller.index.SijiInfoIndexController", "com.cz073586.tuokebusiness.controller.index.JzxWeightInfoIndexController", "com.cz073586.tuokebusiness.controller.index.SijiXyValueIndexController", "com.cz073586.tuokeandroid.controller.index.SijiInfoAndroidController"],
"paths": [],
"status": "UP",
"properties": {},
"thirdPartyService": false,
"intance": {
"instanceId": null,
"serviceId": null,
"endpoints": ["rest://127.0.0.1:80?protocol=http"],
"hostName": null,
"status": "UP",
"properties": {},
"healthCheck": {
"mode": "push",
"port": 0,
"interval": 0,
"times": 0,
"ttl": 0
},
"environment": "production",
"stage": "prod",
"dataCenterInfo": null,
"timestamp": null
}
}
}
返回的错误信息:
{"errorCode":"400012","errorMessage":"Micro-service does not exist","detail":"development/cxisoft/tkcust/1.0.0 does not exist."}
{"errorCode":"400001","errorMessage":"Invalid parameter(s)","detail":"http: request body too large"}
----------------------------------------------------------------
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