Can you try "eureka:///serviceappname"? One more "/". As specified here
<https://github.com/grpc/grpc/blob/master/doc/naming.md>, the name should
be of this syntax "scheme://authority/endpoint_name".
On Thursday, August 9, 2018 at 8:59:04 AM UTC-7, Isuru Samaraweera wrote:
>
> Hi All,
>
> I use below snippet for load balanced grpc client.
>
> EurekaClientConfig eurekaClientConfig = new DefaultEurekaClientConfig();
> ManagedChannel channel = ManagedChannelBuilder
> .forTarget("eureka://" +
> "service-aeroline-passenger-messaging")
> .nameResolverFactory(new
> EurekaNameResolverProvider(eurekaClientConfig, "9071"))
>
> .loadBalancerFactory(RoundRobinLoadBalancerFactory.getInstance())
> .usePlaintext(true)
> .build();
>
> It seems .forTarget url is wrongly stated.I have put
> "eureka://serviceappname" .Can somebody point out whats the correct target
> url to put when Eureka is used as discovery server?
>
> Thanks,
> Isuur
>
--
You received this message because you are subscribed to the Google Groups
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit
https://groups.google.com/d/msgid/grpc-io/ff8a4c1e-0888-406c-86a1-83ad0294c902%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.