firebase-admin-node: [bug] Fails to login firebase-admin after updating to 5.13.0
- Operating System version: Windows 8.1
- Firebase SDK version: 5.13.0
- Library version: Unknown
- Firebase Product: firebase-admin-node
Steps to reproduce:
After updating firebase-admin-node from 5.12.1 to 5.13.0, the library fails to recognize the service account that I put in (I checked and it is valid) and go back to check the default credentials.
UnhandledPromiseRejectionWarning: Error: Unexpected error while acquiring application default credentials: Could not load the default credentials. Browse to https://developers.google.com/accounts/docs/application-default-credentials for more information.
Rolling back to 5.12.1 solves the issue.
Relevant Code:
import * as admin from 'firebase-admin';
const serviceAccount = require('../../service-account-key.json');
admin.initializeApp({
credential: admin.credential.cert(serviceAccount),
databaseURL: 'https://project.firebaseio.com'
});
const db = admin.firestore();
db.settings({timestampsInSnapshots: true});
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 2
- Comments: 16 (9 by maintainers)
I’m seeing some regressions related to the new Firestore version. @schmidt-sebastian can you take a look? Following results are from my mac: