pubsub: Pubsub Subscription Receive silently hangs without ca-certificates in Docker #3842
Labels
api: pubsub
Issues related to the Pub/Sub API.
type: question
Request for information or clarification. Not an issue.
Client
PubSub
Environment
Docker on GKE
Go Environment
go version go1.16 darwin/amd64
$ go version
$ go env
Code
Expected behavior
Receive fails with error due to missing certificates
Actual behavior
Receive hangs with no error message
Additional context
I was using the ubuntu18.04 docker image as my base and when running my pubsub receive logic, the messages would never be received.
I was able to track down the root cause to #791. I resolved it by installing
ca-certificates
using the following:For future developers who run into this issue the quickest fix is to use Google's Ubuntu 18.04 instead which has this dependency already baked in.
The text was updated successfully, but these errors were encountered: