Closed OctavianCahyadi closed 1 year ago
As seen in the error message:
Connection refused: no further information: localhost/[0:0:0:0:0:0:0:1]:80
You are connecting to the wrong port.
Your config is wrong:
grpc:
client:
erp-manajemen-pengguna-grpc:
- address: localhost
- port: 9191
+ address: dns:///localhost:9191
negotiationType: PLAINTEXT
Do we have invalid documentation somewhere that uses the port
property? Or is that a client server config mixup.
Does that solve your issue?
address: dns:///localhost:9191
greeat !!! its solve my problem.
I think I'm mixing with other libray config. Thank for your help @ST-DDT 😄
The context
What do you wish to achieve? grpc-client can request to server
The bug
What's the problem? What's not working? What do you expect to happen. grpc-client got
Connection refused: no further information: localhost/[0:0:0:0:0:0:0:1]:80
from grpc server (in the same host). i tried request with the same address and port from postman no TLS and its work very well.ss from postman
grpc client code :
@Configuration @ImportAutoConfiguration({ net.devh.boot.grpc.client.autoconfigure.GrpcClientAutoConfiguration.class, net.devh.boot.grpc.client.autoconfigure.GrpcClientMetricAutoConfiguration.class, net.devh.boot.grpc.client.autoconfigure.GrpcClientHealthAutoConfiguration.class, net.devh.boot.grpc.client.autoconfigure.GrpcClientSecurityAutoConfiguration.class, net.devh.boot.grpc.client.autoconfigure.GrpcClientTraceAutoConfiguration.class, net.devh.boot.grpc.client.autoconfigure.GrpcDiscoveryClientAutoConfiguration.class,
}) public class GrpcConfig { }
Stacktrace and logs
Is there a stacktrace or a hint in the logs? (very important) Screenshots work as well, but don't screenshot your logs.
Steps to Reproduce
Steps to reproduce the behavior:
The application's environment
Which versions do you use?
Additional context