Why gRPC endpoint not allow "http://"?

Viewed 18

I am testing the gRPC in the Java project.

By the way, is it right that the gRPC protocol does not allow http://?

Of course, I thought it would be possible because it was based on http2 if remove http://, it works fine

Caused by: java.lang.IllegalArgumentException: cannot find a NameResolver for http://10.xxx.xxx.xx:9090
    at io.grpc.internal.ManagedChannelImpl.getNameResolver(ManagedChannelImpl.java:772)
    at io.grpc.internal.ManagedChannelImpl.getNameResolver(ManagedChannelImpl.java:781)
0 Answers
Related