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

edited by kamaln7

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.

×
1 answer

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

by Brian Boucheron
This tutorial will show you how to set up a firewall with UFW on Ubuntu 18.04.
Submit an Answer