Skip to content

Service account does not recognize project_id #38

Description

@vicdotdevelop

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 :) ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions