I’m using the example sketch on (page 51) Firebase_WEB tutorial. I upload the sketch to a NodeMCU.
I get this error on my serial monitor:
Token info: type = id token, status = on request
Token info: type = id token, status = error
Token error: code: -1, message: connection refused
Getting User UID
Where do I place the URL? database.json
Roger
Hi.
I’m not sure that I understood your question.
What URL are you referring to?
In that example, we’re just authenticating to a Firebase Project using the user credentials. In that example, we’re not writing to the database yet. That’s done on the project on the next unit.
If the connection was refused, please double-check that the username and password to authenticate are correct. Additionally, double-check the API key.
Regards,
Sara
Hi Sara
I will call out the pages from the Firebase Web App v2.
I will go into more details starting with my authentication that shows my User UID. Pg53
I copied the code on pgs 48 & 49 and loaded into Arduino IDE sketch “nodemcuv2”. All my required passwords, API key and email were installed. The board is a NodeMcu board. Compiled and uploaded the project with serial monitor.
The error is:
Connected with IP: “**** IP Address *****
Firebase Client v3.3.6
Token info: type = id token, status = on request
Token info: type = id token, status = error
Token error: code: -1, message: connection refused
It should show my UID. // Print user UID
uid = auth.token.uid.c_str();
Serial.print(“User UID: “);
Serial.print(uid);
Can’t figure it out.
I started to register my “com.example.mcu.node” app but don’t know to use Play Integrity or
SafetyNet? Need advice.
Hi.
If all the credentials are correct, I’m not sure what might be wrong and why your connection is being refused.
When followed page 26, do you get your used UID as shown in the eBook?
Regards,
Sara
YES, It has the created date, Signed in date and the UID.
I’m going ahead and register my Android app since I have the UID.
Roger