Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error querying RTDB #13

Open
dattasaurabh82 opened this issue Feb 24, 2022 · 0 comments
Open

error querying RTDB #13

dattasaurabh82 opened this issue Feb 24, 2022 · 0 comments

Comments

@dattasaurabh82
Copy link

dattasaurabh82 commented Feb 24, 2022

I have simple RTBD (same like your example DB)
Screenshot 2022-02-24 at 8 55 33 PM

In the configuration, I have input my DB's reference name
https://<my_DB_name>.firebaseio.com/ (location is in US, so ...firebaseio.com is correct)

I have then downloaded the json file and input the Client Email .

For the private key I have a question; the field, in the json file, contain data in this format:

{
"private_key":"-----BEGIN PRIVATE KEY-----\nMIIEvgIBADANBgkqhkiG9w.....
......\n......\n
wwLlUy5KOlgbyxnumhr\n-----END PRIVATE KEY-----\n",
}

Which part am I supposed to copy?
I tried this part to copy and paste in the field:

-----BEGIN PRIVATE KEY-----\nMIIEvgIBADANBgkqhkiG9w.....
......\n......\n
wwLlUy5KOlgbyxnumhr\n-----END PRIVATE KEY-----\n

Screenshot 2022-02-24 at 9 10 32 PM
Screenshot 2022-02-24 at 9 03 55 PM

And then when I trigger. I get this error in debug console:
SyntaxError: Unexpected token u in JSON at position 0

And in terminal, if I look it says something along the line:

(/Users/saurabhdatta/VW_FCA_projects/Micropod/2021-2022/tests/ble_distance_sensor/_node_red/node_modules/node-red-contrib-firebase-data/source/addFirebase.js:78:31)

I have no idea what's going wrong here!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant