Replies: 8 comments 12 replies
-
|
https://github.com/orgs/supabase/discussions/17817 |
Beta Was this translation helpful? Give feedback.
-
|
I am having the same issue, but it also says it can't connect in the supabase dashboard & I am using the supabase client library. Any updates? |
Beta Was this translation helpful? Give feedback.
-
|
I just change my dns whenever I work on the project (to cloudfare 1.1.1.1)
and connection gets established but I have also not found any permanent
solution
Regards
…On Mon, 1 Apr, 2024, 7:24 pm InsightfulFuture, ***@***.***> wrote:
I am having the same issue, but it also says it can't connect in the
supabase dashboard & I am using the supabase client library. Any updates?
—
Reply to this email directly, view it on GitHub
<#20934 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATUGMD5Y2M4IYOXGGQSZGFTY3FRJJAVCNFSM6AAAAABCVE4HIGVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DSNZTGEZDO>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Instead of using a direct connection string, use the Transaction or Session pooler connection string, resolved this issue for me. Using Drizzle to connect to a postgres DB on Supabase. |
Beta Was this translation helpful? Give feedback.
-
|
It actually says in my Supabase db setttings area that Pool mode is permanently set to Transaction on port 6543 |
Beta Was this translation helpful? Give feedback.
-
Issue with with executingSQLALCHEMY_DATABASE_URL = f"postgresql+asyncpg://{PG_USER}:{PG_PASSWORD}@{PG_HOST}:{PG_PORT}/{PG_DB}"
engine = create_async_engine(
config.SQLALCHEMY_DATABASE_URL,
echo=False,
)
async_session_maker = async_sessionmaker(engine, expire_on_commit=False)
async def get_async_db_session() -> AsyncGenerator[AsyncSession, None]:
async with async_session_maker() as session:
yield session
async def register_user(user_data:user_schema.RegisterSchema,
db: AsyncSession):
query = select(User).where(
(User.username == user_data.username) |
(User.email == user_data.email)
)
result = await db.execute(query)[Errno 11003] getaddrinfo failed I am getting this error, anyone know how to fix |
Beta Was this translation helpful? Give feedback.
-
|
This was the solution for me: If you're using an ORM like Drizzle or Prisma with Supabase, you actually use a different connection string than the one shown on the front page of the transaction pooler. The front page will show something like: While the ORM page (in Database Settings) will show: There are a few key differences between these URLs:
This actually explains why @khaelou's solution of switching to an AWS-based URL worked - the ORM connection string needs to use these AWS endpoints directly. Hope this helps anyone else running into the same issue! |
Beta Was this translation helpful? Give feedback.
-
|
In my case, the problem was with the network. I changed from wifi to mobile data hotspot, and it worked. |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
I'm encountering an issue where my APIs are unable to fetch data from the database. Specifically, the error I'm receiving is: Error: getaddrinfo ENOTFOUND db.database_url.supabase.co. This issue came up unexpectedly as there have been no recent changes to the codebase, and to the best of my knowledge, the database is not corrupted.
Here's a brief overview of the tech stack and relevant frameworks used in the project:
Could you provide guidance or suggestions on what might be causing this ENOTFOUND error and how to resolve it? Any insights into potential issues with the DNS resolution or other networking concerns related to db.database_url.supabase.co would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions