0

I installed the firebase bundle extension in my project and started to configure

https://github.com/firebase/firestore-bundle-builder/tree/main/admin-dashboard

Installation

Clone this repository:

git clone git@github.com:firebase/firestore-bundle-builder.git

Install the dependencies:

npm install

Create a .env file in the root directory of the project and add the following environment variables:

PROJECT_ID=your-project-id

This project assumes that you have setup Google Application Default Credentials on your machine (a GOOGLE_APPLICATION_CREDENTIALS environment variable pointing to a service account JSON file).

Run the application:

?npm run dev ?```

I created an .env file and added a line

PROJECT_ID=my-project-id

But not sure of json file, as I think it is already there, as I deploy function and hosting the application to firebase.

Error:

Error: 7 PERMISSION_DENIED: Missing or insufficient permissions.

admin-dashboard\node_modules@grpc\grpc-js\src\call.ts:81:17)

Please advice

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
Kris Swat
  • 788
  • 1
  • 10
  • 39
  • 3
    It looks like you mostly just copied the readme from the repo here without modification. That's not terribly helpful. Did you see the part where it says "This project assumes that you have setup Google Application Default Credentials on your machine (a GOOGLE_APPLICATION_CREDENTIALS environment variable pointing to a service account JSON file)."? – Doug Stevenson Jul 02 '23 at 23:23
  • I clearly mentioned what I did not do isn't and the reason - "But not sure of json file, as I think it is already there, as I deploy function and hosting the application to firebase.". I did no extra than read me steps, so pasted those 4 commands – Kris Swat Jul 03 '23 at 22:07
  • 1
    "I think it is already there" isn't a very strong assertion. We should be able to duplicate the problem based on the information you provide. If you didn't provide a file with valid service account credentials, then it will certainly fail with a permission problem. This isn't a skippable step - you should edit the question to show what you did for this step so that we can do the same and observe the same result. If you are actually very certain that you provided a file with service account credentials, then maybe you didn't provide the correct data. – Doug Stevenson Jul 03 '23 at 22:09
  • works when used from gitbash ( does not work from vscode terminal). I have functions like getProducts - functions.https.onCall(async (data, context). How can I create document paths - "A comma separated list of document paths. If specified, only these documents will be included in the bundle." for my above function ? – Kris Swat Jul 05 '23 at 21:18

0 Answers0