Randomly on my App platform app I’m getting a 504 error and it says “We encountered an error where trying to load your application and your page could not be served. Check the logs for your application in the App Platform dashboard.” But I didn’t see anything in the logs and this only started happening after I connected database to a connection pool. Please need help…I’m using react and nodejs with postgresql and prisma
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!
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,
I recently answered a similar question here:
https://www.digitalocean.com/community/questions/how-to-make-use-of-managed-pg-pool-in-app-platform
If you have Trusted Sources enabled for your database you would need to make sure that your app is actually added to the trusted sources list as described here:
https://docs.digitalocean.com/products/app-platform/how-to/manage-databases/
Regarding the connection pools, note that DigitalOcean currently does not support trusted sources with MongoDB or Postgres connection pools.
Best,
Bobby