You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/docs/content/troubleshooting/dashboard-errors-when-managing-users-N1ls4A.mdx
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,13 +72,13 @@ These error are normal a side effect of issues in your custom user management lo
72
72
73
73
Use the hints provided in the error message to fix issues in your custom user management logic.
74
74
75
-
**Trigger/trigger function related error messages** - [Solution for trigger related issues](#solution-trigger)
75
+
**Trigger/trigger function related error messages** - [Solution for trigger related issues](/docs/guides/troubleshooting/dashboard-errors-when-managing-users-N1ls4A#solution-for-trigger-related-issues)
**Constraint related error message** - [Solution for constraint related issues](#solution-constraint)
81
+
**Constraint related error message** - [Solution for constraint related issues](/docs/guides/troubleshooting/dashboard-errors-when-managing-users-N1ls4A#solution-for-constraint-related-issues)
82
82
83
83
```
84
84
ERROR: 23503: update or delete on table "users" violates foreign key constraint "profiles_id_fkey" on table "profiles"
@@ -91,23 +91,23 @@ DETAIL: Key (id)=(7428a53c-75b7-4531-9ae9-1567d9c4ac0a) is still referenced fro
91
91
ERROR: column \"updated_at\" of relation \"profiles\" does not exist (SQLSTATE 42703)
92
92
```
93
93
94
-
**Broken search path / incorrect name** - [42P01 related solution](docs/guides/troubleshooting/resolving-42p01-relation-does-not-exist-error-W4_9-V)
94
+
**Broken search path / incorrect name** - [42P01 related solution](/docs/guides/troubleshooting/resolving-42p01-relation-does-not-exist-error-W4_9-V)
95
95
96
96
```
97
97
failed to close prepared statement: ERROR: current transaction is aborted, commands ignored until end of transaction block (SQLSTATE 25P02): ERROR: relation \"public.profiles\" does not exist (SQLSTATE 42P01)
98
98
```
99
99
100
100
---
101
101
102
-
## Solution for constraint related issues[#solution-constraint]
102
+
## Solution for constraint related issues
103
103
104
104
- Check for foreign/primary key relationship between the `auth.users` table and another table
105
105
- Then ALTER the [behavior](https://stackoverflow.com/questions/5383612/setting-up-table-relations-what-do-cascade-set-null-and-restrict-do) of the relationship and recreate it with a less [restrictive constraint](https://stackoverflow.com/questions/3359329/how-to-change-the-foreign-key-referential-action-behavior).
106
106
- If this is related to deleting records, review the [Cascade Deletes doc](/docs/guides/database/postgres/cascade-deletes) for possible approaches (e.g. using `CASCADE` / `SET NULL`)
107
107
108
108
---
109
109
110
-
## Solution for trigger related issues[#solution-trigger]
110
+
## Solution for trigger related issues
111
111
112
112
Supabase Auth uses your project's database to store user data. It relies on the `auth` schema, and Supabase restricts access to the `auth` schema to prevent unintended custom changes that could break the functionality of the Auth service.
0 commit comments