Open
Description
Guys, I spent an hour figuring out the cause of the following error:
unavailable: "Channel isn't ready."
Turns out, instead of this:
let transport = try! HTTP2ClientTransport.TransportServices(target: .dns(host: "grpc.mydomain.com"), transportSecurity: .tls)
I've been using this:
let transport = try! HTTP2ClientTransport.TransportServices(target: .ipv4(host: "grpc.mydomain.com"), transportSecurity: .tls)
If you expect only IPv4 address in .ipv4(host:)
you should crash (or throw) if you get something else, and frankly .ipv4(address:)
communicates the idea much better. Sorry for venting out.
Metadata
Metadata
Assignees
Labels
No labels