firebase-functions-helper
firebase-functions-helper copied to clipboard
Service account does not recognize project_id
Hey,
I wanted to use your library to upload a json with an auto-generated id to firestore. As I was using firestore-import-export and it worked quite well, I wanted to switch over to this lib, as it has the auto-generated id. Nevertheless, when I try to call initializeApp with the serviceAccount it says:
Error: Service account object must contain a string "project_id" property.
Even though it has this value in the serviceaccount.json file I have downloaded from firebase. It is also the same file that was working with the firestore-import-export lib.
any help :) ?
One thing that I can think of is to manually add the project_id to the serviceAccount. Let me know if it works.
the project_id is actually in the serviceAccount.json file. @dalenguyen
Does your serviceAccount.json look something like this?

Does your serviceAccount.json look something like this?
Yes it looks exactly like this
Hi @victorblaess, it's hard to tell what happened. It would be great if you can share some snapshots of your project structure. The command & errors that occur. You can sensor sensitive information before posting.