March 19, 2022, 4:08pm
I’m a new user, just getting started with n8n.
I needed a database, so I signed up for a Firebase Google Cloud Realtime Database, but I cannot get the node to work with my database.
I get the following error:
“ERROR: The resource you are requesting could not be found. 404 Not Found”
When signing up for Firebase I chose to use the European site (Belgium).
According to the Firebase console the URL to the database is:
When checking the source code for the n8n Firebase node, I do only see one reference to a URL.
I guess this Is the reason for the 404-error? I found this thread, which seems to point out the same situation as I have:
10:54PM - 10 Jan 21 UTC
The provided code won't work if european (Belgium) server is chosen for r
… ealtime db, because it does not sits on the default url. I don't know how to solve this properly, but a workaround is to modify the Firebase DB reference initiation like this:
```mFirebaseDatabaseReference = FirebaseDatabase.getInstance("url-to-europe-db").getReference();```
Maybe this should be stated in codelabs, because gave a few hours to debug :)
Can I work around this in some way? Where to change?
March 19, 2022, 4:11pm
By the way. The node authenticates correctly with Firebase, since it identifies my Project ID successfully and populates the drop down box.
@Areip, welcome to the community
I am sorry to hear you’re having trouble here. I have not used this node myself, but shall add this to our internal bug tracker for a more in-depth investigation and fix.
The URL you are seeing would be the one used to fetch your projects, I assume this is working fine and the error only occurs when actually trying to store or fetch data?
Other operations would use
here) which does indeed seem outdated (unless you’re in the us-central1 region) from looking at Google’s documentation:
Depending on the
location of the database, the URL for the new database will be in one of the following forms:
DATABASE_NAME.firebaseio.com (for databases in
DATABASE_NAME.REGION.firebasedatabase.app (for databases in all other locations)
So it seems your conclusion is spot on here.
March 21, 2022, 11:37am
Thanks! I really appreciate it
You are most welcome and sorry I didn’t have any better news here
I get the same error when trying to access data but my database is stored in us-central1 region.
So the problem may be somewhere else (even if I think that database stored in Europe region will not work…)
March 21, 2022, 3:36pm
I had an old project residing on the same Firebase account, with a database at
I can use the n8n node with this database without any problem. Works as expected.
However if I create a new project, and in that project, creates a realtime database in
us-central1, the database address becomes
@Areip, I imagine this information helps a lot with fixing this!
I see exactly the same database address with
DATABASE_NAME-default-rtdb.firebaseio.com with my database which is stored in
For your information, changing line 24 of the following file
Google Firebase Realtime Generic Functions did the job:
url: uri ||
url: uri ||
April 19, 2022, 11:27am
Got released with
April 19, 2022, 12:08pm
0.173.0 worked as expected.
Thanks for everything