You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ClientException: Connection closed before full header was received #291
Describe the bug
When executing multiple firestore queries, few queries fail with below exceptions:
{"severity":"ERROR","message":"ClientException: Connection closed before full header was received, uri=https://firestore.googleapis.com/v1/projects/{project-id}/databases/(default)/documents:runQuery\npackage:http/src/io_client.dart 229:7 IOClient.send\npackage:googleapis_auth/src/auth_http_utils.dart 43:22 AuthenticatedClient.send\npackage:google_cloud_rpc/service_client.dart 149:22 ServiceClient._makeStreamingRequest\n"}
Aggregate Count Query:
ClientException: Connection closed before full header was received, uri=https://firestore.googleapis.com/v1/projects/{project-id}/databases/(default)/documents/{collection}/{document-id}:runAggregationQuery
Where Query:
ClientException: Connection closed before full header was received, uri=https://firestore.googleapis.com/v1/projects/{project-id}/databases/(default)/documents:runQuery
I'm executing around 3K queries simultaneously using Future.wait
Activity
demolaf commentedon Jul 1, 2026
Hi @OutdatedGuy thanks for raising this. I was able to reproduce this and currently investigating, i'll keep this issue up to date.
fix(firestore): retry query and aggregation reads on transient connec…
fix(firestore): retry query and aggregation reads on transient connec…