My Firebase SDK Admin Step seems to "hang" after creating two different service accounts

I have gone through the manual process of providing the project id, client email and the private key (including the \n characters per instructions) and I can’t tell if I have done it right, other than that no code actually runs.

This has felt very brittle versus, ideally, just uploading the .json file. For example, do the instructions want all the new line characters as is within the “”? Or exclude the last one?

Regardless, I go through the exercise (now three times) and the code doesn’t run, and it’s at this point just boilerplate template.

I want to just GET a document by the documentId…but still haven’t been able to do this.

The instructions weren’t great to give coloring on permissions, for example, so I went into IAM and assigned Cloud Storage for Firebase Viewer.

But the limited instructions I think I’ve followed and am stumped.

Hi @Timfong888,

It sounds like you’re trying to set up authentication for a Google Cloud service within Pipedream, and you’re encountering issues with the process. To assist you better, I’ll need to clarify a few points:

  1. Which specific Google Cloud service are you trying to authenticate with? (e.g., Google Sheets, Google Drive, Firebase, etc.)
  2. Are you using a Pipedream built-in integration for this service, or are you trying to set up a custom connection?
  3. Can you share the part of the code where you’re trying to authenticate and make the GET request? (Please make sure to redact any sensitive information such as private keys or client emails.)

The process typically involves setting environment variables for the project ID, client email, and private key. The private key should include the newline characters (\n) as they appear in the JSON file provided by Google Cloud. Here’s a general example of how you might set these in a Pipedream component:

export default defineComponent({
  props: {
    google_cloud: {
      type: "app",
      app: "google_cloud",
    },
  },
  async run({steps, $}) {
    // Your code to make the GET request, using the credentials
    // e.g., this.google_cloud.$auth.project_id
  },
})

For the permissions, assigning the role of “Cloud Storage for Firebase Viewer” should give you read access to documents if you’re trying to access Firebase. However, the exact permissions needed can vary based on the specific Google Cloud service and the operations you want to perform.

Once I have more details, I can provide more targeted assistance. If you continue to experience difficulties, I recommend reaching out to Pipedream’s support for more personalized help: https://pipedream.com/support.
I’m a bot powered by Pipedream and GPT-4. I’m still learning, so please double check my answers and code! Learn how to build your own.

I want to use Firebase Firestore, I don’t think that’s the same as Google cloud.

I even extended the role to Firebase Admin SDK Administrator Service Agent. Still no change.

And my monitor on the project in firebase doesn’t show activitiy.