Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: change the message for transient errors (#35691)

Andrew Valleteau45a239f1d51c
diff --git a/apps/studio/components/interfaces/Database/Migrations/Migrations.tsx b/apps/studio/components/interfaces/Database/Migrations/Migrations.tsx
index 317f81ccd45..60a04c36b40 100644
--- a/apps/studio/components/interfaces/Database/Migrations/Migrations.tsx
+++ b/apps/studio/components/interfaces/Database/Migrations/Migrations.tsx
@@ -46,8 +46,8 @@ const Migrations = () => {
description={
<>
<p className="mb-1">
- Try refreshing your browser, but if the issue persists, please reach out to us via
- support.
+ Try refreshing your browser, but if the issue persists for more than a few
+ minutes, please reach out to us via support.
</p>
<p className="mb-4">Error: {(error as any)?.message ?? 'Unknown'}</p>
</>
diff --git a/apps/studio/components/ui/AlertError.tsx b/apps/studio/components/ui/AlertError.tsx
index 5dd87e64ea2..5081f7385fe 100644
--- a/apps/studio/components/ui/AlertError.tsx
+++ b/apps/studio/components/ui/AlertError.tsx
@@ -46,8 +46,8 @@ const AlertError = ({
<div>
{error?.message && <p className="text-left">Error: {formattedErrorMessage}</p>}
<p className="text-left">
- Try refreshing your browser, but if the issue persists, please reach out to us via
- support.
+ Try refreshing your browser, but if the issue persists for more than a few minutes,
+ please reach out to us via support.
</p>
</div>
{children}
diff --git a/apps/studio/data/fetchers.ts b/apps/studio/data/fetchers.ts
index 37b807f428b..68338e47670 100644
--- a/apps/studio/data/fetchers.ts
+++ b/apps/studio/data/fetchers.ts
@@ -64,7 +64,7 @@ function pgMetaGuard(request: Request) {
// in such case, we save the hops and throw a 421 response instead
if (!isValidConnString(request.headers.get('x-connection-encrypted'))) {
throw new ResponseError(
- 'x-connection-encrypted header is required for /platform/pg-meta/ requests',
+ 'API Error: happened while trying to acquire connection to the database',
400,
request.headers.get('X-Request-Id') ?? undefined
)