Skip to content

firestore: Listening to snapshots fail silently when ca-certificates are missing and hangs forever #1234

Description

@renannprado

Client

Firestore

Describe Your Environment

Docker debian:9.6

Expected Behavior

Firestore snapshots should be received

Actual Behavior

Firestore snapshots are not received, but I get no errors

Relevant code:

snapshot := client.Collection("colectionName").Snapshots(ctx)
snapshot.Next()

By enabling the GRPC_GO_LOG_SEVERITY_LEVEL=INFO variable (thanks to #791) I clearly see that the error is related to the certificates.
But my guess is that this package could report it at least, that's why I'm creating this issue.

Seems to be related to this almost-year-old PR grpc/grpc-go#1742

I think this is actually expected from the library (not to work) if the certificates are missing, but I believe they should be reported by the library instead of hanging forever (I know the bug actually lies in the gRPC, but maybe this point was not covered in the library and maybe it's possible to report it or at very least my intention is to document this behavior as an issue just in case more people goes through this).

Workaround:

The workaround is to install package apt-get install -y ca-certificates in the docker image.

Metadata

Metadata

Assignees

Labels

api: firestoreIssues related to the Firestore API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions