Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Database connection error in FastAPI #4

Open
AMADIVHACKERDON opened this issue Mar 2, 2025 · 0 comments
Open

Fix: Database connection error in FastAPI #4

AMADIVHACKERDON opened this issue Mar 2, 2025 · 0 comments

Comments

@AMADIVHACKERDON
Copy link

Title:
Fix: Database connection error in FastAPI

Description:

Problem
When running the FastAPI app, the database connection fails due to incorrect credentials in config.py.

Steps to Reproduce

  1. Run docker-compose up.
  2. Check Fast API logs for database errors.
    Suggested Fix
    Update config.py to load environment variables correctly.
    Ensure DATABASE_URL follows the correct PostgreSQL URI format.

Relevant Files
app/config.py
docker-compose.yml

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant