Skip to content

error querying RTDB #13

@dattasaurabh82

Description

@dattasaurabh82

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions