Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get "storageBucket" in Firebase to generate?

Firebase keeps giving me empty "" instead of generating a URL for "storageBucket" when I try to get the code to paste into my HTML for login through Google. I am assuming this is the reason I am getting the error: This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.(anonymous function) @ iframe.js:84

I am using browser sync to user localhost which is supposed to be an authorized domain. I have the firebase cdn in my header of my HTML and everything that was generated for my firebase app (except for the storageBucket). I tried importing my app to the new Firebase, just typing in my app name in a similar storage bucket URL ("eventSpot.appspot.com") and I tried just creating a new app in Firebase. None of these worked. Is there something I am missing?

Thanks in advance for your help! :)

like image 360
Robert Prine Avatar asked May 23 '16 17:05

Robert Prine


People also ask

How do I enable Cloud Storage in Firebase?

We will go to the Firebase console and look at the Firebase Cloud Storage in Developers-> Storage. Step 4: We will create a database by clicking on the Get started. After clicking on Get started, a popup box is open where we set storage with specific rules and click on Next.

How do I get metadata from Firebase storage?

Get File Metadata This metadata can be retrieved from a Cloud Storage reference using the getMetadata() method. getMetadata() returns a Promise containing the complete metadata, or an error if the Promise rejects.

How do I find my Firebase storage bucket name?

The bucket name must not contain gs:// or any other protocol prefixes. For example, if the bucket URL displayed in the Firebase console is gs://bucket-name.appspot.com , pass the string bucket-name.appspot.com to the Admin SDK. }); const bucket = getStorage().


1 Answers

The storage tab can take some time just after project creation - but if you've left it a little while and you're still getting the error, it may be some APIs have not been enabled.

Can you go to https://console.developers.google.com/project/_/apis/enabled

Check for:

  • App Engine Admin API
  • Google Cloud Storage
  • Google Cloud Storage JSON API

If any aren't enabled, enable them. After that, try the storage console again.

like image 133
Ian Barber Avatar answered Sep 23 '22 02:09

Ian Barber