Prisma outage (Nov 25): Prisma Check Constraint Violation Maps to Undocumented Fallback Error Code P2039
Is it fixed? Not yet.
Ongoing since Nov 25, 14:47 UTC. First reported Nov 25, 14:47 UTC. Not on the vendor’s status page yet.
What happened
Queries failing due to check constraint violations throw an undocumented fallback error code P2039 instead of the expected P2004 error code in Prisma. Affected users receive a generic database error message.
What caused it?
Under active investigation. No report has identified a root cause yet.
No verified workaround yet
None of the linked reports describe a mitigation. This page updates when one appears.
Outage timeline
- Investigating(current)
- Workaround available(upcoming)
- Resolved(upcoming)
- First report on GitHub issue
A check constraint violation is not mapped to the expected error code; uses fallback instead
Source
Reports of this outage
1 report · 1 GitHubShow
- [1]GitHub First reportA check constraint violation is not mapped to the expected error code; uses fallback instead(opens GitHub issue in a new tab)
Package and version prisma@7.10.1 What happened? A query that fails due to a check constraint violation will throw error code P2039 - an undocumented fallback error code, first introduced in this PR. This results in a generic error message: Database error. Code: X. Message: Y What did you expect to happen? It should instead be mapped to P2004. Minimal reproduction Add a check constraint to a table and have it fail: ADD CONSTRAINT test_table CHECK (test_table.val_a + test_table.val_b <= 1);…
by iXerxes 0upvotes 1comments
Prisma outage FAQ
What happened in the Prisma outage, and why?
Ongoing since Nov 25, 14:47 UTC. No cause has been published yet; this page adds it once the vendor or a report explains it.
What is affected by the Prisma outage?
Prisma (versions: 7.10.1).
When did the Prisma outage start and end?
It started Nov 25, 14:47 UTC and is still ongoing (1 d 2 h so far). This page updates as it develops.
How do I get alerts for Prisma?
Subscribe to the Prisma RSS feed for every new Prisma incident, or connect an AI assistant to WhatBrokeToday over MCP and ask whether Prisma is down. Prisma feed
Where does this information come from?
WhatBrokeToday collects public status pages, developer community reports and security advisories, groups the ones about the same problem, and links every report under Evidence on this page. This one has 1 report from 1 independent source.