Open ghs-gs opened 2 years ago
@ghs-gs as suggested in the error, you can run firebase init storage
. This will configure basic storage rules for you, stored in a storage.rules
file.
@ghs-gs as suggested in the error, you can run
firebase init storage
. This will configure basic storage rules for you, stored in astorage.rules
file.
Hello, thanks for your reply. I have tried it but I faced with the error below:
Error: Cloud resource location is not set for this project but the operation you are attempting to perform in Cloud Storage requires it. Please see this documentation for more details: https://firebase.google.com/docs/projects/locations
########################################################################################################################
Welcome to...
######## #### ######## ######## ######## ### ###### ######## ##
## ## ## ## ## ## ## ## ## ## ## ##
###### ## ######## ###### ######## ######### ###### ###### ##
## ## ## ## ## ## ## ## ## ## ##
## #### ## ## ######## ######## ## ## ###### ######## ##
########################################################################################################################
~ Let's make sure your Firebase CLI is ready...
+ Looks like your CLI is set up!
Already logged in as *****@gmail.com
+ You can now use the 'firebase' or 'npm' commands!
~ For more help see https://firebase.google.com/docs/cli/
------------------------------------------------------------------------------------------------------------------------
> firebase init
######## #### ######## ######## ######## ### ###### ########
## ## ## ## ## ## ## ## ## ## ##
###### ## ######## ###### ######## ######### ###### ######
## ## ## ## ## ## ## ## ## ## ##
## #### ## ## ######## ######## ## ## ###### ########
You're about to initialize a Firebase project in this directory:
C:\Users\*****\AndroidStudioProjects\friendlyeats-android
Before we get started, keep in mind:
* You are initializing within an existing Firebase project directory
? Are you ready to proceed? Yes
? Which Firebase features do you want to set up for this directory? Press Space to select features, then Enter to confirm your choices. Storage: Configure a security rules file for Cloud Storage, Emulators: Set
up local emulators for Firebase products
=== Project Setup
First, let's associate this project directory with a Firebase project.
You can create multiple project aliases by running firebase use --add,
but for now we'll just set up a default project.
i Using project friendly-eats-b308b (Friendly Eats)
=== Storage Setup
**Error: Cloud resource location is not set for this project but the operation you are attempting to perform in Cloud Storage requires it. Please see this documentation for more details: https://firebase.google.com/docs/projects/locations**
Later on, I created the storage.rules manually and put code below to inside it:
service firebase.storage {
match /b/{bucket}/o {
match /{allPaths=**} {
allow read, write: if request.auth != null;
}
}
}
But still same storage error like above occurred again.
Oh @ghs-gs looks like something went wrong when your project was created and it was not assigned a GCP resource location. Maybe the answers in this post will help you?
Step 1: Describe your environment
Step 2: Describe the problem:
I am having issue to start to Firebase Emulator UI. Firebase initialization complete! code appears but I face with a problem when try to start the emulators.
Could you please help me to solve the issue? Thanks.
Steps to reproduce:
Please see the complete UI code like below:
Observed Results:
logcat
output, etc.The screen below also pops up when the error occurs.
Expected Results:
Could you please help me to solve this problem? Thanks.
Relevant Code:
firebase.json =>
firestore.rules =>
firestore.indexes.json =>