-
Notifications
You must be signed in to change notification settings - Fork 492
Firebase.failed() #221
Comments
can you recompile with httpclient + ssl debugging on (Tools > Debug Level) and paste the log here? Thanks in advance. |
@proppy - I seem to be having trouble finding the Debug Level settings. This may be a bit of noob question but are you speaking in the context of the Arduino IDE? I am using v1.6.11. |
It's in |
Hey. I have the same problem. Any operation with the firebase does not work and leads to an empty error. And before the same sketch it worked fine. Were you able to solve this problem? |
@ScorpioNormal same problem. none of the firebase functions works and the error is empty. also couldnt find the debug level. edit: everything went back to normal after i switch to serial 9600 |
I have the same problem. But I've more information: when the data at Firebase Database increases, this method ( Firebase.get([path]) ), return .success()==true and the data stored into microcontroller is "undefined". By "undefined" I mean the data is something different from database (in my case I have float values more than zero and I receive zero). When I delete child nodes at [path], the Firebase.get([path]) returns all data correctly. I thing this is some problem related to buffer sizes. |
@afnalin can you share your MCU and your logging steps? I can try this out on my ESP and see if the buffer size is device specific |
Any progress on this? Same problem, sketch isn't talking to Firebase, no error messages. I'm available for tests. |
any update?still can't figure it out what's wrong with my sketch. already tried many tutorials, none of it able to talk to Firebase [update] solved my problem by erasing the "https://" and "/" (at the end of the sentence) when defining the FIREBASE_HOST |
I get the same problem with @afnalin. When I try to get FirebaseOject from the root, it returns {} empty Json. I try to specify the path to a child node and it works. Also check with https://bblanchon.github.io/ArduinoJson/assistant/. The FirebaseObject only works with Json smaller than 772 bytes. I use a NodeMCU 1.0. For more detail. Below is my data in Firebase database. Data works (772 bytes). That means I can get FirebaseObject in ESP8266.
I only add a new child node ("start" :{"hour":2}} ) to make Data become 825 bytes and It went away. Returned FirebaseObject in ESP8266 now is Empty. {"description":"bxhchc","deviceType":1,"lastConnectedTime":"Tue Aug 01 22:55:40 2017\n","name":"trang1","reset":false,"settings":{"4":{"forceTurnOn":false,"timeSettingsList":[{"days":[0,2,4,7],"end":{"hour":23,"minute":18},"start":{"hour":1,"minute":3}},{"days":[1],"end":{"hour":2}, "start" :{"hour":2}}]}},"uid":"2itLuPyoaXcnrZyd2QkbsxJaAPm1","version":1} Thanks a lot. |
The problem is when you are trying to access to your FirebaseDatabase, you need to: #define FIREBASE_HOST "yourproject.firebaseio.com/" You need to write '/' at the end because you are going to access to: yourproject.firebaseio.comdatabase Insted of yourproject.firebaseio.com/database It is importat to check if you have a '/' while calling the path. |
Hey everyone m having the same issue with my esp. I was using the demo code that comes with esp package to upload data to my firebase and its not able to do so. It's showing error "setting /number failed:". So far I have tried everything i could think of I have double checked my secret database key and hostname (tried it with and without that "/" at the end), changed upload speed to 9600 and even tried using older version of ide i.e "1.6.9". Still no luck. Any help would be appreciated. |
@harshgar did you fix that already? cause we have the same problem.. help me plss |
@Jackfr0zt Yes I solved it. I used IDE version "1.6.9" plus I removed the older version of the firebase library and re-downloaded and re-installed it that solved my issue. There was an issue with the push function of that library that was resolved in the later version of the library so u need to download the latest version of firebase master library. |
@lanhnguyen2010 the returned object is empty because FIREBASE_JSONBUFFER_SIZE in FirebaseObject.h is set too low. Replace the line |
@baudcode : it should be considered more when you increase to JSON_OBJECT_SIZE(128) Inside library file: FirebaseObject.h |
Sorry for the late reply, you should be able to define Filed #349 to track improving error reporting. |
Firebase.setInt("MES", MES); val1=Firebase.getString("S1").toInt();
case 1:
Serial.println("light 1 OFF");
} |
@proppy - in Arduino IDE, anything you define in sketch does not get propagated into library code. So defining it won't work unless you modify header of the library itself. We can, however, modify library to have JSON memory size setting. |
FirebaseObject.h is set too low. Replace the line #define FIREBASE_JSONBUFFER_SIZE JSON_OBJECT_SIZE(128) firebase için 12e modül output için modify library ???? |
@kotl really? It should work if you redefine it before the #include? |
pinMode(Relay1,OUTPUT); Serial.begin(9600); // connect to wifi. Firebase.begin(FIREBASE_HOST, FIREBASE_AUTH); int n = 0; switch (data) {
case 1:
Serial.println("light 1 OFF");
if (Firebase.failed()) { |
yeniden library yazmalı .. |
@proppy it does not redefine it in the library: Quoted from https://stackoverflow.com/questions/14418936/overriding-define-in-libraries |
gelen json sayıları işlem sonrası buffer temizlemek nasıl... hafıza temizlemek ...nasıl yapılır.. |
hey all, |
@rishini same with me, I don't can connecting my firebase to esp.. |
same issue! i use esp8266MOD ,everything is perfectly, but nothing is shown on firebase. Please Help! |
@rishini @falery @preksha02 try this https://github.com/Chriton/Firebase-Arduino/tree/master/Arduino%20Project see the Troubleshooting section |
Thanks, @Chriton but that's also not working. Do you know any different ways to solve this problem? |
@rishini don't know any other, that worked for me |
Please tell me @Chriton when I am adding the zip files that you mentioned do I have to remove any libraries? |
@rishini just follow the steps in https://github.com/Chriton/Firebase-Arduino/tree/master/Arduino%20Project#troubleshooting :
|
@rishini also check this out: cd5681f#commitcomment-32762792 |
Thank you very much @Chriton you saved my project. |
@rishini the latest fingerprint that you have send is also not working.
…On Sat, Mar 16, 2019 at 3:08 PM rishini ***@***.***> wrote:
Thank you very much @Chriton <https://github.com/Chriton> you saved my
project.
It's about the fingerprint. The latest fingerprint is "E2 34 53 7A 1E D9
7D B8 C5 02 36 0D B2 77 9E 5E 0F 32 71 17" Make sure to put this" ; "after
the fingerprint. And remove the key also.
Guys, @preksha02 <https://github.com/preksha02> @falery
<https://github.com/falery> try that. It may be work for you also.
Thanks.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#221 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AuRWF5qPS2hTPXRWIuCpw2czv1t26fORks5vXLupgaJpZM4Kn7CI>
.
|
@preksha02 Make sure to close the whole Arduino IDE after adding the new fingerprint. Then open it and try the code. |
Yah i did this. Actually i was using v2 version , then it was fine working
with this and now i am working on v3 version of esp board so it creates
problem.
…On Tue, Mar 19, 2019, 7:34 PM rishini ***@***.***> wrote:
@preksha02 <https://github.com/preksha02> Make sure to close the whole
Arduino IDE after adding the new fingerprint. Then open it and try the code.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#221 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AuRWF36a2lStC1csP3mcKcRt_kNEWVW-ks5vYO5sgaJpZM4Kn7CI>
.
|
Umm the problem is of esp8266 version and it solved now. Anyways thanks!
On Tue, Mar 19, 2019 at 5:18 PM Preksha Gupta <[email protected]>
wrote:
… @rishini the latest fingerprint that you have send is also not working.
On Sat, Mar 16, 2019 at 3:08 PM rishini ***@***.***> wrote:
> Thank you very much @Chriton <https://github.com/Chriton> you saved my
> project.
> It's about the fingerprint. The latest fingerprint is "E2 34 53 7A 1E D9
> 7D B8 C5 02 36 0D B2 77 9E 5E 0F 32 71 17" Make sure to put this" ; "after
> the fingerprint. And remove the key also.
> Guys, @preksha02 <https://github.com/preksha02> @falery
> <https://github.com/falery> try that. It may be work for you also.
> Thanks.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#221 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AuRWF5qPS2hTPXRWIuCpw2czv1t26fORks5vXLupgaJpZM4Kn7CI>
> .
>
|
@Chriton Thank you! Your solution worked for me. |
@Chriton Thank You for the answer. This worked. |
@Chriton - This method really helps me solve the issue... |
Hey everyone,
I seem to be having a unique error that I can't find anyone else facing. When I call
Firebase.get("[path]")
on a given path in my database, it returns unsuccessfully. As expected,Firebase.failed()
is true, however, I can't see any output withSerial.println(Firebase.error());
(the error is empty). My database url and api key are correct as I can use them in my NodeJS project. My usage is a follows:After my ESP12E is connected successfully to WiFi, I run
Firebase.begin(FIREBASE_HOST, FIREBASE_AUTH);
in my setup function.Then, in my loop, I call
FirebaseObject temp = Firebase.get("light-options");
(light-options being a path to an object in my database. Yes, I have also tried this with a single value within the object such as"light-options/red"
.).This is directly followed by:
if (Firebase.failed()) { Serial.println("Firebase get failed"); Serial.println(Firebase.error()); }
At which point, the console prints the string, but no output for
Firebase.error()
.Also, I have ensured that the network does remain connected throughout this process.
Any thoughts? I'm not sure how to proceed.
Many thanks,
Nelly
The text was updated successfully, but these errors were encountered: