Question

Unable to access data from firestore database via api requests

I was connected to my application backend with python flask and firestore database hosted in ubuntu server , in ubuntu server it was running locally fine using localhost but after hosting into Apache2, my server unable to load the data from firestore db via api requests, I was done all the configurations for apache2 but still i am unable to access my firestore db through api requests

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there @balanaguyashwanth,

If you have a firewall on your Droplet like UFW, you need to make sure that you open the port for outgoing connections.

You can do that by following the steps from this article here:

https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-with-ufw-on-ubuntu-18-04

Another thing that you might have to do is allow your Droplet’s IP address to your Firebase Database so that your Droplet could connect to the database.

Regards, Bobby