Skip to content

Commit

Permalink
feat: document more error codes for Accelerate (#5481)
Browse files Browse the repository at this point in the history
Co-authored-by: Nikolas <[email protected]>
  • Loading branch information
ankur-arch and nikolasburk authored Nov 22, 2023
1 parent a3f1d0b commit a904bf1
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions content/400-reference/200-api-reference/250-error-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,22 @@ Interactive transaction error:

Accelerate-related errors start with `P6xxx`.

#### <inlinecode>P6000</inlinecode> (<inlinecode>ServerError</inlinecode>)

Generic error to catch all other errors.

#### <inlinecode>P6001</inlinecode> (<inlinecode>InvalidDataSource</inlinecode>)

The URL is malformed; for instance, it does not use the `prisma://` protocol.

#### <inlinecode>P6002</inlinecode> (<inlinecode>Unauthorized</inlinecode>)

The API Key in the connection string is invalid.

#### <inlinecode>P6003</inlinecode> (<inlinecode>PlanLimitReached</inlinecode>)

The included usage of the current plan has been exceeded. This can only occur on the [free plan](https://www.prisma.io/pricing).

#### <inlinecode>P6004</inlinecode> (<inlinecode>QueryTimeout</inlinecode>)

The global timeout of Accelerate has been exceeded. You can find the limit [here](/data-platform/accelerate/limitations#query-timeout-limit).
Expand All @@ -533,6 +549,14 @@ The global timeout of Accelerate has been exceeded. You can find the limit [here

The user supplied invalid parameters. Currently only relevant for transaction methods. For example, setting a timeout that is too high. You can find the limit [here](/data-platform/accelerate/limitations#interactive-transactions-query-timeout-limit).

#### <inlinecode>P6006</inlinecode> (<inlinecode>VersionNotSupported</inlinecode>)

The chosen Prisma version is not compatible with Accelerate. This may occur when a user uses an unstable development version that we occasionally prune.

#### <inlinecode>P6008</inlinecode> (<inlinecode>ConnectionError|EngineStartError</inlinecode>)

The engine failed to start. For example, it couldn't establish a connection to the database.

#### <inlinecode>P6009</inlinecode> (<inlinecode>ResponseSizeLimitExceeded</inlinecode>)

The global response size limit of Accelerate has been exceeded. You can find the limit [here](/data-platform/accelerate/limitations#response-size-limit).

1 comment on commit a904bf1

@vercel
Copy link

@vercel vercel bot commented on a904bf1 Nov 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./

prisma2-docs.vercel.app
docs-prisma.vercel.app
docs-git-main-prisma.vercel.app

Please sign in to comment.