• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Firebase "connection refused" error

Q&A Forum › Category: ESP32 › Firebase "connection refused" error
0 Vote Up Vote Down
Robert Fisher asked 10 months ago

I am following Firebase Web App with ESP32. The code works well but 
I am getting an occasional error when updating firebase real time database from the function firebaseData.errorReason()  The error is as follows:  “connection refused”. I have tried to find possible causes in Firebase docs but no luck there. I have also tried different networks.
This happens when updating using individual “set” commands or updating all readings at once using json.
Note: if I immediately try again to update it usually works so I have added code to retry on error, but I would still like to know possible causes of this error. Thanks,
Rob

Question Tags: Firebase
4 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 10 months ago

Hi.
Im not sure what is causing the error.
checking for the error and retrying in case of failing seems a good solution.
 
What is exactly the code that you’re testing?
 
Regards.
Sara

0 Vote Up Vote Down
Robert Fisher answered 10 months ago

Hi Sara, code is here. (same code as last issue which was resolved.)
https://pastebin.com/ixzFLQdx
 

0 Vote Up Vote Down
Sara Santos Staff answered 10 months ago

Hi.
Everything seems fine with the code…
So, I’m not sure what’s the cause of the error. So, it’s better to add the lines for retying in case of failing.
Regards,
Sara

0 Vote Up Vote Down
Robert Fisher answered 10 months ago

OK I will just add the lines.Thank you for checking.
Rob

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.