mobizt / Firebase-ESP32

[DEPRECATED]🔥 Firebase RTDB Arduino Library for ESP32. The complete, fast, secured and reliable Firebase Arduino client library that supports CRUD (create, read, update, delete) and Stream operations.
MIT License
415 stars 118 forks source link

Several different error messages on different hosts #120

Closed MathiasYde closed 3 years ago

MathiasYde commented 3 years ago

Using a WEMOS LOLIN32 on the example basic Arduino sketch results in several different error messages. The microcontroller successfully connects to WiFi.

I've tried the following hosts:

mobizt commented 3 years ago

You may currently read the large JSON payload from the server which causes the truncated payload and the error in internal JSON parsing process.

The library default payload size limit is 4096 bytes which you can increase it to bigger value.

firebaseData.setResponseSize(8192);

I delete the previous comment due to it is for esp8266 version.

mobizt commented 3 years ago

Please also check the valid of the Firebase credentials.

The errors are from your code and database management.

Avoid to get or set the large JSON data as it not suitable in the limited resource device.

MathiasYde commented 3 years ago

I've set the response size of firebaseData to 8192 and still get similar results. Regardless, how do I check the valid of my Firebase credentials?

mobizt commented 3 years ago

Host name should valid no slash at the end. Database secret should should not contain any space in side the quotes "".

MathiasYde commented 3 years ago

I've made sure of that and still getting errors

mobizt commented 3 years ago

If you change the node path to other node that contains small data e.g. only number or string inside and still get the error, try to create the new database secret.

If you still get the error, the problem may be the account restriction which I don't know.

Try to use other gmail to register the new project.

MathiasYde commented 3 years ago

I'll use something else. Thank you.