Why Can't I Get Test Data from Firebase into Pipedream?

This topic was automatically generated from Slack. You can find the original thread here.

Hey all, I have a pretty basic question: I cant get test data from Firebase into Pipedream. Ive set up the workflow but whenever I add a document to the location specified nothing happens within Pipedream.

What am I doing wrong here?

Screenshot 2023-06-22 at 20.29.13.png

Hi Gino!
Not sure if it’ll make any difference, but have you tried with the path /users?

Instead of /users/

Unfortunately no difference :disappointed:

That’s unfortunate. Can you please open up the web browser console and see if there are any logged errors?

8
Unchecked runtime.lastError: The message port closed before a response was received.

googleads.g.doublecl…nfig&rfmt=3&fmt=4:1  
Failed to load resource: net::ERR_BLOCKED_BY_CLIENT

[api.pipedream.com/so](http://api.pipedream.com/so)…d=event&client=ui:1  
Failed to load resource: net::ERR_CONNECTION_RESET

[api.pipedream.com/so](http://api.pipedream.com/so)…d=event&client=ui:1  
Failed to load resource: net::ERR_NETWORK_IO_SUSPENDED

[api.pipedream.com/so](http://api.pipedream.com/so)…d=event&client=ui:1  
Failed to load resource: net::ERR_NETWORK_IO_SUSPENDED
build:1 
Autofocus processing was blocked because a document already has a focused element.

[api.pipedream.com/so](http://api.pipedream.com/so)…d=event&client=ui:1  
Failed to load resource: net::ERR_NETWORK_IO_SUSPENDED

[api.pipedream.com/so](http://api.pipedream.com/so)…ygY/sse?client=ui:1  
Failed to load resource: net::ERR_NETWORK_IO_SUSPENDED

[api.pipedream.com/so](http://api.pipedream.com/so)…ygY/sse?client=ui:1  
Failed to load resource: net::ERR_CONNECTION_RESET

[api.pipedream.com/so](http://api.pipedream.com/so)…d=event&client=ui:1  
Failed to load resource: net::ERR_CONNECTION_RESET
14
WebSocket connection to '<URL>' failed: WebSocket is closed before the connection is established.

[api.pipedream.com/so](http://api.pipedream.com/so)…d=event&client=ui:1  
Failed to load resource: net::ERR_NETWORK_IO_SUSPENDED

[api.pipedream.com/so](http://api.pipedream.com/so)…ygY/sse?client=ui:1  
Failed to load resource: net::ERR_NETWORK_IO_SUSPENDED

Let me try in a different browser

Dont have the errors in another tab but still wont find any events after adding a document in Firebase

Let’s see if can help here while I try to reproduce- @U05A7KLNALC in firebase admin sdk new child object in database trigger, I am not being notified of new files added to a path

I understand you’re having trouble with the Firebase trigger not notifying you of new files added to a path. To help you better, can you please provide more information about your workflow setup? Specifically, which Firebase trigger are you using, and what is the exact path you’ve configured in the trigger settings? This will help me understand the issue and provide a more accurate solution.

the trigger is new-child-object and the path is /users

I see that you’re using the “New Child Object in a Realtime Database” trigger with the path /users. To help you troubleshoot, please ensure you’ve followed these steps: 1. Make sure you’ve connected your Firebase Admin SDK account correctly in the trigger settings. 2. Double-check the path you’ve entered in the trigger settings. It should match the path in your Firebase Realtime Database where new child objects are being added. 3. Ensure that your Firebase rules allow read access to the specified path. If you’ve confirmed these settings and the issue persists, please try re-deploying your workflow and see if it starts capturing events. If the problem still remains, consider reaching out to Pipedream support at https://pipedream.com/support for further assistance.

do you have files in another path, like in /? I’m not that familiar with Firebase to know if it is possible to put files into /

can you help figure out what could be the issue here?

@U02S7FH4T89 Firebase/Firestore is confusing. :slightly_smiling_face: They have 2 different types of databases, Cloud Firestore, and Realtime Database. The source/trigger “New Child Object in a Realtime Database” works with the Realtime Database, while the source/trigger “New Document in Firestore Collection” works with the Cloud Firestore Database. I think you need to use the source called “New Document in Firestore Collection” to receive updates on the path you’re using. Also make sure the region is correct. That can throw it off.

Thank you for looking into it!

Thanks for taking a look @U02S7FH4T89 really appreciate it! It makes sense, however, I still cannot get it to work:

Ive created this structured query to return new entries and created a test document but to no avail.

{
"select": {
"fields": [
"email",
"name"
]
},
"from": [
{
"collectionId": "users",
"allDescendants": true
}
]
}

GCP resource location isnt selected though and when I try to specify it - the options wont load. Might this be the issue?

The fields section of the query is an array, but it’s actually an array of objects containing the key, fieldPath.

I think it should work if you structure the query like this:
{ "select": { "fields": [{"fieldPath": "email"},{"fieldPath": "name"}] }, "from": [ { "collectionId": "users", "allDescendants": "true" } ] }