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


Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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