Skip to content

Database connection error in FastAPI #4 #1240

@AMADIVHACKERDON

Description

@AMADIVHACKERDON

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

Run docker-compose up.
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions