'Cannot download google-services.json from firebase console

I'm trying to download google-services.json from firebase console. The error is There was an error. The config file cannot be downloaded at this time. as it can be seen in the below screenshot.

enter image description here

There are answers on Stackoverflow which didn't work for me (one and two). Specifically, clearing cache and history, using a newly installed chrome, trying with firefox and edge, using incognito tabs, didn't work.

What else can be done to get rid of this annoying error?



Solution 1:[1]

For me also I had this issue. Before trying anything, I refreshed/reloaded my page, and it works. After refreshing my page, I was able to download google-services.json file.

Solution 2:[2]

I had the same problem for a while with firebase google

what I did was to open the Developer Options for the web and looked at the request response from google

and I found out that the network response is very clear:

"The Google cloud platform for this project is disabled please go to https://console.cloud.google.com/apis/api/firebase.googleapis.com/overview?project=<YOUR_PROJECT> and enable"

but for some reason the UI is very un-clear

Very simple solution, go to the link below and enable your project: https://console.cloud.google.com/apis/api/firebase.googleapis.com/overview?project=

Solution 3:[3]

While in my case, the issue was caused by my ad blocker. I opened network monitor through developer tools and found out that my ad blocker was canceling post requests sent by Firebase. Disabling it for Firebase solved my issue.

Solution 4:[4]

I was using Brave , stopped ad blocker but still it does not work , Use Chrome if nothing works ....it worked for me..

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Rahul Chaurasia
Solution 2 shiloy
Solution 3 Fahad Maqsood Qazi
Solution 4 Milind Gour