26
Views
7
Comments
Solved
Firebase Realtime  database
Question

I am trying to retrieve data from realtime database but I keep on getting the error "query.on failed: Was called with 1 argument. Expects at least 2." . I think i am passing the wrong format in the ref input can someone help on this. thanks

UserImage.jpg
Ariel Lagumbay
Solution

Hello everyone I already fix the issue, it has a problem in the realtime database forge, 

so what I did is I created my own script. Thank you for the help and responses.  

2022-12-30 07-28-09
Navneet Garg

That's great, can you please share your solution so in future community can check it.

UserImage.jpg
Ariel Lagumbay

Yeah sure, I just created  my own script instead of using the script from the forge. 

2024-07-31 11-32-34
ndy

Dear @Ariel Lagumbay .

Ensure the path you’re providing is correctly formatted and matches your database structure. 

Would you like to share your oml file?

UserImage.jpg
Ariel Lagumbay

hello sir @ndy , I am using the firebase Realtime Database forge, maybe you can help me by giving example or the correct format that I should  put the "ref" input parameter. Thank you

2022-12-30 07-28-09
Navneet Garg

can you provide more detail or oml file ?

2025-01-31 03-15-38
Irfan Ahamed Abdul Shukoor

Hi @Ariel Lagumbay ,

Kindly check the below forum, the user faced the same issue,

https://stackoverflow.com/questions/35526205/firebase-promise-query-once-failed-was-called-with-1-argument-expects-at-lea
He also mentioned the same, hope this helps.

UserImage.jpg
Ariel Lagumbay
Solution

Hello everyone I already fix the issue, it has a problem in the realtime database forge, 

so what I did is I created my own script. Thank you for the help and responses.  

2022-12-30 07-28-09
Navneet Garg

That's great, can you please share your solution so in future community can check it.

UserImage.jpg
Ariel Lagumbay

Yeah sure, I just created  my own script instead of using the script from the forge. 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.