Skip to content

Critical: API service fails with "unsupported URL scheme: postgresql" #838

@Ankitd013

Description

@Ankitd013

The API service fails to start when configured with a PostgreSQL database. The application returns a critical error indicating that the underlying database driver only supports libsql, file, http/s, or ws/s schemes.

Error Logs:
severity=CRITICAL pid=1 service.name=*di.Container error=unsupported URL scheme: postgresql
This driver supports only URLs that start with libsql://, file://, https://, http://, wss:// and ws://

Environment:
Database: PostgreSQL 18.3 (Docker)
API Connection String: postgresql://dbusername:dbpassword@postgres:5432/httpsms

Steps to Reproduce:
Configure the API service to connect to an external PostgreSQL instance.
Start the service.
The container crashes immediately with the "unsupported URL scheme" error.

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