© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•2mo ago•
24 replies
hustler

Subject: CRITICAL: Persistent Authentication Failure (Tenant/User Not Found) connecting to Pooler

🔢DB Connections
Project Reference:
wdqcqxixxxxxxxxx
wdqcqxixxxxxxxxx


Region:
ap-northeast-2
ap-northeast-2
(Inferred from Pooler Host)

Problem:

My FastAPI backend application is consistently rejected by the Connection Pooler with the error
asyncpg.exceptions.InternalServerError: Tenant or user not found
asyncpg.exceptions.InternalServerError: Tenant or user not found
during startup. This is happening even after exhausting all standard troubleshooting steps. The error suggests a specific authentication policy conflict within the PgBouncer configuration for this project.

Connection and Network Context:

1. Direct Connection Blocked: The direct database host (
db.*
db.*
) failed due to an IPv4/IPv6 compatibility issue, as confirmed by your console: "Not IPv4 compatible."
2. Pooler Host Used: I am successfully reaching the Pooler host (verified by eliminating the previous Timeout Error).
3. Host Used:
aws-1-ap-northeast-2.pooler.supabase.com
aws-1-ap-northeast-2.pooler.supabase.com

4. Port Used:
5432
5432


Authentication Testing (All Failed with the same "Tenant or user not found" error):

| Credentials Tested | User in URL | Password/Key in URL | Database Name |
| Standard User/Simple Pass |
postgres
postgres
|
[PASSWORD]
[PASSWORD]
(Reset/Verified) |
postgres
postgres
|
| Service Role Key (Standard DB) |
service_role
service_role
|
[SUPABASE_KEY]
[SUPABASE_KEY]
|
postgres
postgres
|
| Service Role Key (Ref ID DB) |
service_role
service_role
|
[SUPABASE_KEY]
[SUPABASE_KEY]
|
wdqcqxiynasrtvvdfnxf
wdqcqxiynasrtvvdfnxf
|
| Final Test |
postgres
postgres
|
[Service Role Key]
[Service Role Key]
|
postgres
postgres
|
Untitled_document_3.pdf56.08KB
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Connecting to Session Pooler in self-hosted instance results in FATAL: Tenant or user not found.
SupabaseSSupabase / help-and-questions
3mo ago
Difficulty connecting to pooler?
SupabaseSSupabase / help-and-questions
3mo ago
PostgresError: Tenant or user not found
SupabaseSSupabase / help-and-questions
5mo ago
Database hostname not resolving / Pooler not connecting
SupabaseSSupabase / help-and-questions
4mo ago