Skip to content

Postgresql invalid connection option "check_same_thread" #421

@rizquuula

Description

@rizquuula

I am using this config in plombery.config.yaml

database_url: postgresql://plombery:plombery123@plombery_db:5432/plombery_db

the library returned error

Exception has occurred: ProgrammingError
(psycopg2.ProgrammingError) invalid dsn: invalid connection option "check_same_thread"

(Background on this error at: https://sqlalche.me/e/20/f405)
psycopg2.ProgrammingError: invalid dsn: invalid connection option "check_same_thread"


The above exception was the direct cause of the following exception:

  File "/home/muhamad/Salts/plombery/src/flow/test_1.py", line 3, in <module>
    from plombery import task, Trigger, register_pipeline
  File "/home/muhamad/Salts/plombery/src/app.py", line 1, in <module>
    from flow.test_1 import *
sqlalchemy.exc.ProgrammingError: (psycopg2.ProgrammingError) invalid dsn: invalid connection option "check_same_thread"

(Background on this error at: https://sqlalche.me/e/20/f405)

Happened on v0.4.1, why don't you upgrade it to the latest main branch? There is a fix for this already

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions