Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

on large amount of firestore reads getting ECONNRESET #1754

Closed
michaelAtCoalesce opened this issue Aug 10, 2022 · 2 comments
Closed

on large amount of firestore reads getting ECONNRESET #1754

michaelAtCoalesce opened this issue Aug 10, 2022 · 2 comments
Assignees
Labels
api: firestore Issues related to the googleapis/nodejs-firestore API. needs more info This issue needs more information from the customer to proceed. priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@michaelAtCoalesce
Copy link

/Users/alex/node-firestore-import-export/node_modules/@grpc/grpc-js/build/src/call.js:31
    return Object.assign(new Error(message), status);
                         ^

**Error: 16 UNAUTHENTICATED: Failed to retrieve auth metadata with error: request to https://www.googleapis.com/oauth2/v4/token failed, reason: read ECONNRESET**
    at Object.callErrorFromStatus (/Users/alex/node-firestore-import-export/node_modules/@grpc/grpc-js/build/src/call.js:31:26)
    at Object.onReceiveStatus (/Users/alex/node-firestore-import-export/node_modules/@grpc/grpc-js/build/src/client.js:189:52)
    at Object.onReceiveStatus (/Users/alex/node-firestore-import-export/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:365:141)
    at Object.onReceiveStatus (/Users/alex/node-firestore-import-export/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:328:181)
    at /Users/alex/node-firestore-import-export/node_modules/@grpc/grpc-js/build/src/call-stream.js:187:78
    at process.processTicksAndRejections (node:internal/process/task_queues:77:11) {
  code: 16,
  details: 'Failed to retrieve auth metadata with error: request to https://www.googleapis.com/oauth2/v4/token failed, reason: read ECONNRESET',
  metadata: Metadata { internalRepr: Map(0) {}, options: {} },
  note: 'Exception occurred in retry method that was not classified as transient'
}

Environment details

  • OS: macOS
  • Node.js version: 18.5.0
  • @google-cloud/firestore version: 3.8.0

image

This is failing consistently for us.

@michaelAtCoalesce michaelAtCoalesce added priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Aug 10, 2022
@product-auto-label product-auto-label bot added the api: firestore Issues related to the googleapis/nodejs-firestore API. label Aug 10, 2022
@ehsannas
Copy link
Contributor

Hi @michaelAtCoalesce , thanks for reporting. I noticed that you are using an old version of the SDK (3.8.0). Can you please try with the latest version (6.0.0) and let us know if you continue to experience the issue?

There have been fixes to the underlying RPC library (e.g. grpc/grpc-node#2084) that might have fixed this issue already.

@ehsannas ehsannas self-assigned this Aug 16, 2022
@ehsannas
Copy link
Contributor

I also realized that there is an existing thread about this.
I suggest reading #1738 (comment) and try to do a "promise audit". Let me know how it goes.

@ehsannas ehsannas added the needs more info This issue needs more information from the customer to proceed. label Aug 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: firestore Issues related to the googleapis/nodejs-firestore API. needs more info This issue needs more information from the customer to proceed. priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

2 participants