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
414 stars 119 forks source link

After update Firebase-ESP32 library from version 4.1.0 to version 4.2.0, the error 'method not allow' is occur. #248

Closed jatu-studiobox closed 1 year ago

jatu-studiobox commented 1 year ago

Describe the bug After update Firebase-ESP32 library from version 4.1.0 to version 4.2.0, the error 'method not allow' is occur. (version4.1.0 work fine.) Some update methods (setTimestamp, setInt) have error 'method not allow'. Sometime, data in RTDB lost when it is updated.

To Reproduce call method 'setTimestame' -> result error call method 'setInt' -> result error

Expected behavior Data is correctly updated.

Screenshots 1

2

3

IDE and its version:

ESP32 Arduino Core SDK version

mobizt commented 1 year ago

The update is not affected to all Firebase operations included request and response management i.e. no changes in the RTDB operations.

The update is related to the TCP client which now shared usage from user assigned FirebaseData object and used in authentication process as normally when authentication process was performing, the user FirebaseData object will not be able to connect to the server as usual.

The library v4.2.0 works normally with intensively test with all examples.

Please note that using Strings and string literal joining or concatenation are not allowed in all library functions that accept string as parameter.

I recommend removing all installed Firebase libraries in Arduino libraries folder and install the latest version from library manager to prevent the compiler wrong file links from several files with the same name issue.

If you feel that there is bug, please verify your code changes then create clean and simple example code that replicate the bug post it and describe the bug here.

mobizt commented 1 year ago

Running this example with latest library version 4.2.1 is fine.

jatu-studiobox commented 1 year ago

Ok. After I follow your advise and update to version 4.2.1, it back to work usual.

Thank you very much :)