From a904bf16be82c0b2355b997a2b94ad487c4e8de4 Mon Sep 17 00:00:00 2001 From: Ankur Datta <64993082+ankur-arch@users.noreply.github.com> Date: Wed, 22 Nov 2023 20:34:49 +0600 Subject: [PATCH] feat: document more error codes for Accelerate (#5481) Co-authored-by: Nikolas --- .../200-api-reference/250-error-reference.mdx | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/content/400-reference/200-api-reference/250-error-reference.mdx b/content/400-reference/200-api-reference/250-error-reference.mdx index cba546a1dd..1e100fd233 100644 --- a/content/400-reference/200-api-reference/250-error-reference.mdx +++ b/content/400-reference/200-api-reference/250-error-reference.mdx @@ -525,6 +525,22 @@ Interactive transaction error: Accelerate-related errors start with `P6xxx`. +#### P6000 (ServerError) + +Generic error to catch all other errors. + +#### P6001 (InvalidDataSource) + +The URL is malformed; for instance, it does not use the `prisma://` protocol. + +#### P6002 (Unauthorized) + +The API Key in the connection string is invalid. + +#### P6003 (PlanLimitReached) + +The included usage of the current plan has been exceeded. This can only occur on the [free plan](https://www.prisma.io/pricing). + #### P6004 (QueryTimeout) The global timeout of Accelerate has been exceeded. You can find the limit [here](/data-platform/accelerate/limitations#query-timeout-limit). @@ -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). +#### P6006 (VersionNotSupported) + +The chosen Prisma version is not compatible with Accelerate. This may occur when a user uses an unstable development version that we occasionally prune. + +#### P6008 (ConnectionError|EngineStartError) + +The engine failed to start. For example, it couldn't establish a connection to the database. + #### P6009 (ResponseSizeLimitExceeded) The global response size limit of Accelerate has been exceeded. You can find the limit [here](/data-platform/accelerate/limitations#response-size-limit).