FIREBASE WARNING: Provided authentication credentials for the app named "[DEFAULT]" are invalid. This usually indicates your app was not initialized correctly. Make sure the "apiKey" and "databaseURL" properties provided to initializeApp() match the

1,004 views
Skip to first unread message

Prabhaav Bhardwaj

unread,
Jul 24, 2017, 8:02:46 PM7/24/17
to Firebase Google Group
Hi,

I am using Firebase 4.1.2 Node.js with AWS Lambda. I am unable to do any firebase operations because of the following warning: 

FIREBASE WARNING: Provided authentication credentials for the app named "[DEFAULT]" are invalid. This usually indicates your app was not initialized correctly. Make sure the "apiKey" and "databaseURL" properties provided to initializeApp() match the values provided for your app at https://console.firebase.google.com/

I have re-generated my API key and still same issue. The firebase service account xxx@appspot.gserviceaccount.com is set to be an 'editor'. 

I am initializing the app like this:

var config = {
    apiKey
: "AIzaXXXXXXXXXX",
    authDomain
: "xxx.firebaseapp.com",
    databaseURL
: "https://xxx.firebaseio.com",
    projectId
: "xxx",
    storageBucket
: "xxx.appspot.com"
 
};
  firebase.initializeApp(config); 

This seems like a new issue. I have not had any issues beforehand. When I search the forums it seems like people are seeing this issue for Admin SDK, but we aren't using those features.

Any ideas about what I can be doing wrong here?

Best Regards,

Prabhaav

Clement Wehrung

unread,
Jul 24, 2017, 11:08:56 PM7/24/17
to Firebase Google Group
This just started happening for me after updating to 4.1.4. Reverting to 4.1.3 solves the issue.

Bassam

unread,
Jul 25, 2017, 2:19:45 AM7/25/17
to Firebase Google Group
Thanks for reporting this. This is an issue in the 4.1.4 release. We recommend reverting to 4.1.3.

We apologize for this inconvenience and are actively working to fix this.

Best regards,
Bassam

Prabhaav Bhardwaj

unread,
Jul 25, 2017, 11:51:15 AM7/25/17
to Firebase Google Group
Yea, it looks like it was related to 4.1.4 issue. 4.1.3 seems to fix it, and so does my prelim tests for 4.1.5.

Thanks.

Dion Geraldo

unread,
Jul 26, 2017, 11:23:55 AM7/26/17
to Firebase Google Group
Hi guys,

i am also having the same problem with Prabhaav. I am currently running firebase ver.4.1.2 and Angular 4.0.0-rc.1. And all the apiKey and databaseUrl in my app's firebaseConfig have been set according to my firebase console. Can someone help me with this? Because of this problem i can not test my application at all, not even login to the system. 

Best Regards,
DIon
Reply all
Reply to author
Forward
0 new messages