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

Error: 16 UNAUTHENTICATED #874

Open
ethanbrimhall opened this issue Apr 23, 2024 · 0 comments
Open

Error: 16 UNAUTHENTICATED #874

ethanbrimhall opened this issue Apr 23, 2024 · 0 comments

Comments

@ethanbrimhall
Copy link

Expected behavior

I am trying to export a very large dataset from firestore and have it converted to json format. This package works fine on datasets with minimal firebase documents.

Actual behavior

What i run:

firestore-export --accountCredentials /path-to-credential/credentials.json --backupFile Posts.json --nodePath Posts

On my large datasets, after about 1-2 minutes of retrieving documents, i get an error that stops the program:

/usr/local/lib/node_modules/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: Client network socket disconnected before secure TLS connection was established
at Object.callErrorFromStatus (/usr/local/lib/node_modules/node-firestore-import-export/node_modules/@grpc/grpc-js/build/src/call.js:31:26)
at Object.onReceiveStatus (/usr/local/lib/node_modules/node-firestore-import-export/node_modules/@grpc/grpc-js/build/src/client.js:179:52)
at Object.onReceiveStatus (/usr/local/lib/node_modules/node-firestore-import-export/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:336:141)
at Object.onReceiveStatus (/usr/local/lib/node_modules/node-firestore-import-export/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:299:181)
at /usr/local/lib/node_modules/node-firestore-import-export/node_modules/@grpc/grpc-js/build/src/call-stream.js:145: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: Client network socket disconnected before secure TLS connection was established',
metadata: Metadata { internalRepr: Map(0) {}, options: {} },
note: 'Exception occurred in retry method that was not classified as transient'
}

Node.js v18.18.0

Steps to reproduce the behavior

I'm not an expert in this sort of thing, so any help would be appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant