<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Ezenagu Chinemerem</title>
    <description>The latest articles on Forem by Ezenagu Chinemerem (@codewitheze).</description>
    <link>https://forem.com/codewitheze</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3876195%2Fa645403a-1d64-4e8b-9f62-db9694a660ad.png</url>
      <title>Forem: Ezenagu Chinemerem</title>
      <link>https://forem.com/codewitheze</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/codewitheze"/>
    <language>en</language>
    <item>
      <title>When “Everything Is Correct” but Your Database Still Won’t Connect (Supabase + Prisma)</title>
      <dc:creator>Ezenagu Chinemerem</dc:creator>
      <pubDate>Fri, 17 Apr 2026 15:07:10 +0000</pubDate>
      <link>https://forem.com/codewitheze/when-everything-is-correct-but-your-database-still-wont-connect-supabase-prisma-4cap</link>
      <guid>https://forem.com/codewitheze/when-everything-is-correct-but-your-database-still-wont-connect-supabase-prisma-4cap</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff4akqspn6tp7760efm43.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff4akqspn6tp7760efm43.png" alt=" " width="800" height="533"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx5f1gpijpfcoamd89xjm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx5f1gpijpfcoamd89xjm.png" alt=" " width="800" height="533"&gt;&lt;/a&gt;I recently hit a frustrating issue while connecting Prisma to a Supabase Postgres database.&lt;/p&gt;

&lt;p&gt;At first glance, everything looked fine:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Correct credentials ✅&lt;/li&gt;
&lt;li&gt;Database status: healthy ✅&lt;/li&gt;
&lt;li&gt;Prisma schema: valid ✅&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;But then:&lt;/p&gt;

&lt;p&gt;❌ "Can't reach database server at port 5432"&lt;br&gt;
❌ "Network is unreachable"&lt;br&gt;
⚠️ Prisma hangs when using connection pooler&lt;/p&gt;




&lt;p&gt;🔍 What was actually happening?&lt;/p&gt;

&lt;p&gt;The problem wasn’t Prisma.&lt;br&gt;
It wasn’t Supabase either.&lt;/p&gt;

&lt;p&gt;It was network-level IPv6 incompatibility.&lt;/p&gt;

&lt;p&gt;My system resolved the database host to an IPv6 address, but my ISP/network doesn’t properly support IPv6 — so the connection failed silently.&lt;/p&gt;




&lt;p&gt;⚙️ The breakdown&lt;/p&gt;

&lt;p&gt;Supabase gives two connection types:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Direct DB (port 5432)&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;Requires stable IPv4/IPv6 support&lt;/li&gt;
&lt;li&gt;Used for migrations&lt;/li&gt;
&lt;li&gt;❌ Failed in my case due to IPv6&lt;/li&gt;
&lt;/ul&gt;

&lt;ol&gt;
&lt;li&gt;Connection Pooler (port 6543)&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;Works over IPv4&lt;/li&gt;
&lt;li&gt;Designed for app runtime&lt;/li&gt;
&lt;li&gt;⚠️ Not ideal for Prisma migrations&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;🛠️ Current workaround&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Using pooler for database connection&lt;/li&gt;
&lt;li&gt;Forcing Prisma to run with:
PRISMA_CLIENT_ENGINE_TYPE=binary&lt;/li&gt;
&lt;li&gt;Skipping direct DB access for now&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;🤔 Open questions&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What’s the cleanest way to handle Prisma migrations without direct DB access?&lt;/li&gt;
&lt;li&gt;Are people relying on CI/CD runners or VPS environments for this?&lt;/li&gt;
&lt;li&gt;Is using a VPN the most practical fix long-term?&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;This was a good reminder that sometimes the issue isn’t your code or config — it’s the layer beneath everything.&lt;/p&gt;

&lt;p&gt;Would love to hear how others have handled this.&lt;/p&gt;

&lt;h1&gt;
  
  
  prisma #supabase #postgres #debugging #backend
&lt;/h1&gt;

</description>
    </item>
    <item>
      <title>👋 My First Post — Let’s Build Something Real</title>
      <dc:creator>Ezenagu Chinemerem</dc:creator>
      <pubDate>Mon, 13 Apr 2026 08:31:29 +0000</pubDate>
      <link>https://forem.com/codewitheze/my-first-post-lets-build-something-real-4o39</link>
      <guid>https://forem.com/codewitheze/my-first-post-lets-build-something-real-4o39</guid>
      <description>&lt;p&gt;Hi Dev.to!&lt;/p&gt;

&lt;p&gt;I’m a Backend Engineer who enjoys building scalable systems and clean APIs using Go and Python.&lt;/p&gt;

&lt;p&gt;Over time, I’ve moved beyond just “writing code” to actually understanding how systems are designed, how they scale, and how real-world backend problems are solved. From structuring APIs properly to thinking about performance, data flow, and architecture. I’m focused on building things that actually work in production.&lt;/p&gt;

&lt;p&gt;This space is where I’ll be sharing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Practical backend projects (not just theory)&lt;/li&gt;
&lt;li&gt;Lessons from real builds and mistakes&lt;/li&gt;
&lt;li&gt;Clear breakdowns of complex concepts&lt;/li&gt;
&lt;li&gt;Insights on growing as a backend engineer&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you’re into backend development, system design, or just trying to level up your engineering skills, you’ll feel at home here.&lt;/p&gt;

&lt;p&gt;I’m here to learn, build, and share—consistently.&lt;/p&gt;

&lt;p&gt;Let’s build something real 🚀&lt;/p&gt;

</description>
      <category>backend</category>
      <category>go</category>
      <category>python</category>
      <category>systemdesign</category>
    </item>
  </channel>
</rss>
