Skip to content

admin.intializeApp returns Raw server response #137

@peterwiebe

Description

@peterwiebe
  • Operating System version: Nodejs (Alpine based) docker container, node:8.7.0-alpine
  • Firebase SDK version: 5.4.3
  • Library version: 0.8.2
  • Firebase Product: Auth

I am trying to initialize the connection to my Firebase application using admin.intializeApp with the credentials that were provided when downloading the private key in the service accounts tab of the Firebase console. The result of calling that function is Error: An internal error has occurred. Raw server response: "{}".

The application that utilizes the Firebase SDK is deployed to a Kubernetes cluster inside of GKE. It is behind an ClusterIP Service object which is reachable via an Ingress Object for external requests.

Our implementation of the function is as follows:

admin.initializeApp({
  credential: admin.credential.cert({
    projectId: FIREBASE_PROJECT_ID,
    clientEmail: FIREBASE_CLIENT_EMAIL,
    privateKey: FIREBASE_PRIVATE_KEY
  })
});

Where the constants are set as environment variables.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions