Merging from branch to main issue
after doing some changes on a branch, I tried to merge the changes from the dashboard ui but got this error:
Error loading branch diff
Please try again in a few minutes and contact support if the problem persists.
Am I the only one facing this issue or is it for everyone?
5 Replies
by the way, I created a new project tried to reproduce this error but it went well looks like there is an issue in my project, any ideas how to fix this?
If it worked well in the new project then maybe there is something wrong in your old project. Check the postgres logs to see if there is anymore information on that error. If you can’t find anything else then I’d suggest you contact Supabase support.
Hello @silentworks
I got this errors on creating a new branch
1st error log
{
"event_message": "relation "supabase_migrations.schema_migrations" does not exist",
"id": "0eb4adb4-13fe-4721-89e8-60069a328d6c",
"metadata": [
{
"file": null,
"host": "db-swgqkbyegbcdxxnafdln",
"metadata": [],
"parsed": [
{
"application_name": null,
"backend_type": "client backend",
"command_tag": "PARSE",
"connection_from": "2600:1f18:2b7d:f604:158:cf32:9ff0:e4b7:40458",
"context": null,
"database_name": "postgres",
"detail": null,
"error_severity": "ERROR",
"hint": null,
"internal_query": null,
"internal_query_pos": null,
"leader_pid": null,
"location": null,
"process_id": 3511,
"query": "SELECT version, coalesce(name, '') as name, statements FROM supabase_migrations.schema_migrations",
"query_id": 0,
"query_pos": 61,
"session_id": "68a0537a.db7",
"session_line_num": 4,
"session_start_time": "2025-08-16 09:46:34 UTC",
"sql_state_code": "42P01",
"timestamp": "2025-08-16 09:46:36.031 UTC",
"transaction_id": 0,
"user_name": "postgres",
"virtual_transaction_id": "55/2"
}
],
"parsed_from": null,
"project": null,
"source_type": null
}
],
"timestamp": 1755337596031000
}
2nd error log
{
"event_message": "relation "supabase_migrations.schema_migrations" does not exist",
"id": "1fe2d864-4141-4e83-ba15-ae42734d9258",
"metadata": [
{
"file": null,
"host": "db-swgqkbyegbcdxxnafdln",
"metadata": [],
"parsed": [
{
"application_name": null,
"backend_type": "client backend",
"command_tag": "PARSE",
"connection_from": "2600:1f18:2b7d:f604:158:cf32:9ff0:e4b7:32888",
"context": null,
"database_name": "postgres",
"detail": null,
"error_severity": "ERROR",
"hint": null,
"internal_query": null,
"internal_query_pos": null,
"leader_pid": null,
"location": null,
"process_id": 3943,
"query": "SELECT version FROM supabase_migrations.schema_migrations ORDER BY version",
"query_id": 0,
"query_pos": 21,
"session_id": "68a053aa.f67",
"session_line_num": 4,
"session_start_time": "2025-08-16 09:47:22 UTC",
"sql_state_code": "42P01",
"timestamp": "2025-08-16 09:47:23.734 UTC",
"transaction_id": 0,
"user_name": "postgres",
"virtual_transaction_id": "59/4"
}
],
"parsed_from": null,
"project": null,
"source_type": null
}
],
"timestamp": 1755337643734000
}
also just to let you know there is an existing record of the migration and the schema/table exists
I am also getting this error while inspecting the page when I open the merge request
Request URL
https://api.supabase.com/v1/branches/ce6dbf92-8d96-4f18-82f1-4d77ee51a4f7/diff?included_schemas=public
Request Method
GET
Status Code
500 Internal Server Error
after this request fails 4 times I get the following error:
Error loading branch diff
Please try again in a few minutes and contact support if the problem persists.
If the
supabase_migrations
schema exists and it also contains a schema_migrations
table then you need to contact Supabase support.Thanks for your time, hope they could fix it 🙂