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

[GitHub] [dubbo-go] legend9999 commented on issue #791: how to make sure consul register service mata map's value length >= 512

legend9999 commented on issue #791:
URL: https://github.com/apache/dubbo-go/issues/791#issuecomment-709694953


   在使用consol做配置中心时,如果只指定consul的ip:端口,则在序列化时,会把RegistryConfig的所有属性全部带上,包括nil的属性,导致mete信息长度超过512字节,但consul又对mate的value长度做了限制,就会报400(value is to long) 的错误,在加上simplifield时,在序列化时,会忽略nil的属性。这样就能注册成功!
   但会有另外一个风险,如果在使用时,把RegistryConfig的全部属性都设置了值,这个错误依然会出现!


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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org