Asyncpg Expecte list, got dict error #581
Replies: 3 comments
-
|
this is really a Nile error. Replicating on local, same exact query, will NOT crash the app. I was happy about having a managed postgres, butthe time i already spent on this abslutely is not worth. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for reporting the issue, and extra thanks for the short and clear script that reproduces the problem. We are working on a fix and will keep you posted. Meanwhile, if you are open to giving psycopg3 a go - it is also async and well tested with Nile. |
Beta Was this translation helpful? Give feedback.
-
|
Psycopg3 works well, thanks. I'd add this bit of info in the tutorials! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello all, i'm stuck with the error in the title when connecting to Nile via asyncPg . I can't wrap my head around it. Anybody ot same errors?
A little script to replicate
` import asyncpg
import asyncio
import os
from dotenv import load_dotenv
load_dotenv()
async def fetch_tenants():
db_url = os.getenv("DB_URL")
if name == "main":
asyncio.run(fetch_tenants())
`
Beta Was this translation helpful? Give feedback.
All reactions