Connecting to Google Pubsub works with default configuration but fails with ManagedChannel and TransportChannelProvider
I want to connect to Google pubsub and when I use the documentation of Google itself it works. I enable port forwarding, so the connection is available on localhost:8086
. Below I have two code snippets. The first one connects and prints all the topics, the second one which has a custom host/port configuration does not work.
Connecting to Google Pubsub works with default configuration but fails with custom host and port
I want to connect to Google pubsub and when I use the documentation of Google itself it works. I enable port forwarding, so the connection is available on localhost:8086
. Below I have two code snippets. The first one connects and prints all the topics, the second one which has a custom host/port configuration does not work.