Fix getSpasHeaders serviceName exception (#4883)
This commit is contained in:
parent
ed0edaa023
commit
8dfaabdaf3
@ -197,8 +197,8 @@ public class NamingGrpcClientProxy extends AbstractNamingClientProxy {
|
|||||||
throws NacosException {
|
throws NacosException {
|
||||||
try {
|
try {
|
||||||
request.putAllHeader(getSecurityHeaders());
|
request.putAllHeader(getSecurityHeaders());
|
||||||
request.putAllHeader(
|
request.putAllHeader(getSpasHeaders(
|
||||||
getSpasHeaders(NamingUtils.getGroupedName(request.getServiceName(), request.getGroupName())));
|
NamingUtils.getGroupedNameOptional(request.getServiceName(), request.getGroupName())));
|
||||||
Response response =
|
Response response =
|
||||||
requestTimeout < 0 ? rpcClient.request(request) : rpcClient.request(request, requestTimeout);
|
requestTimeout < 0 ? rpcClient.request(request) : rpcClient.request(request, requestTimeout);
|
||||||
if (ResponseCode.SUCCESS.getCode() != response.getResultCode()) {
|
if (ResponseCode.SUCCESS.getCode() != response.getResultCode()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user