Open lexkong opened 6 years ago
you need to add header ‘x-consumerid’ in your request, please ref to api doc
x-consumerid should not be a requied header, but a optional header
I've checked the latest version, already fix it, can be close the issue.
[lkong@dev service-center-1.0]$ curl -XGET -H "Content-Type: application/json" -H 'x-domain-name: default' -d'{}' http://127.0.0.1:30100/registry/v3/instances
{"errorCode":"400001","errorMessage":"Invalid parameter(s)","detail":"The field 'FindInstancesRequest.ConsumerServiceId' value() does not match rule: {Min: 1,Length: 64,Regexp: ^.$}"} [lkong@dev service-center-1.0]$ ^C [lkong@dev service-center-1.0]$ curl -XGET -H "Content-Type: application/json" -H 'x-domain-name: default' -d'{}' http://127.0.0.1:30100/registry/v3/microservices/ea81c471487d11e889d714050a32e26e/instances {"errorCode":"400001","errorMessage":"Invalid parameter(s)","detail":"The field 'GetInstancesRequest.ConsumerServiceId' value() does not match rule: {Min: 1,Length: 64,Regexp: ^.$}"} [lkong@dev service-center-1.0]$