fix: https://github.com/alibaba/nacos/issues/2527 #2528
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
ref: #2527
encoding the body of beat to avoid the server incorrect parse;
such as this beat:
beat={"cluster":"DEFAULT","ip":"30.5.125.57","metadata":{"dubbo.metadata-service.urls":"[ "dubbo://30.128.116.47:20880/com.alibaba.cloud.dubbo.service.DubboMetadataService?anyhost=true&application=spring-cloud-alibaba-dubbo-server&bind.ip=30.128.116.47&bind.port=20880&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&group=spring-cloud-alibaba-dubbo-server&interface=com.alibaba.cloud.dubbo.service.DubboMetadataService&methods=getAllServiceKeys,getServiceRestMetadata,getExportedURLs,getAllExportedURLs&pid=2362&qos.enable=false&release=2.7.4.1&revision=1.0.0&side=provider×tamp=1585139980414&version=1.0.0" ]","dubbo.protocols.dubbo.port":"20880","preserved.register.source":"SPRING_CLOUD"},"period":5000,"port":20880,"scheduled":false,"serviceName":"DEFAULT_GROUP@@spring-cloud-alibaba-dubbo-server","stopped":false,"weight":1.0}
server will parse it to several KV: