An "invalid response was received from the upstream server" error when querying auth #20722
Replies: 11 comments 25 replies
-
thanks for this - any progress on it being fixed? im in the early phases of an app and need to reset the auth tables often enough in production |
Beta Was this translation helpful? Give feedback.
-
I just ran into this issue on two of my supabase projects. The temporary fix works. Thanks for that! I'd like to paste in the exact error from the database log to make this issue easier to find by just pasting it into the browser. {"level":"fatal","msg":"running db migrations: error executing migrations/20221208132122_backfill_email_last_sign_in_at.up.sql, sql: -- previous backfill migration left last_sign_in_at to be null, which broke some projects\n\ndo $$\nbegin\nupdate auth.identities\n set last_sign_in_at = '2022-11-25'\n where\n last_sign_in_at is null and\n created_at = '2022-11-25' and\n updated_at = '2022-11-25' and\n provider = 'email' and\n id = user_id::text;\nend $$;\n: ERROR: operator does not exist: uuid = text (SQLSTATE 42883)","time":"2024-04-30T12:41:58Z"} |
Beta Was this translation helpful? Give feedback.
-
Had the same problem this week. The fix worked (thanks!) but it was quite hard to figure out what was going on. Do you have updates on this? |
Beta Was this translation helpful? Give feedback.
-
Adding screenshot. Our staging project got this error after random shutdown today. Any progress on a fix? Adding errors for search visibility: Fix: |
Beta Was this translation helpful? Give feedback.
-
Same bug over here. Can someone explain what is happening here? |
Beta Was this translation helpful? Give feedback.
-
I've seen this on our testing instance as well and applied the temporary fix successfully. Is there any Github issue tracking the initial problem of the untracked Auth migrations? |
Beta Was this translation helpful? Give feedback.
-
I am experiencing the same issue (the temp fix worked) |
Beta Was this translation helpful? Give feedback.
-
Thanks! Can you point me on how to properly reset production db? (if supabase db reset --linked is not a good idea) |
Beta Was this translation helpful? Give feedback.
-
Experienced this issue today, fixed worked, but I'm wondering: What did I do / what happened that caused this? I don't believe I made any changes since it was last working (yesterday) vs getting the error today. Not sure if these details are relevant, posting in case it's helpful:
|
Beta Was this translation helpful? Give feedback.
-
In case the quick fix is not working, one possible reason is that GOTRUE tries to add the record to the
|
Beta Was this translation helpful? Give feedback.
-
If you are observing an "invalid response was received from the upstream server" error when making requests to Supabase Auth, it could mean that the respective service is down. One way to confirm this is to visit the logs explorer and look at the auth logs to see if there are any errors with the following lines:
running db migrations: error executing migrations/20221208132122_backfill_email_last_sign_in_at.up.sql
We're currently investigating an issue where the tables responsible for keeping track of migrations ran by Auth (
auth.schema_migrations
) are not being restored properly, which leads to the service(s) retrying those migrations. In such cases, migrations which are not idempotent will run into issues.We've documented some of the migrations that run into this issue and their corresponding fix here:
Auth:
operator does not exist: uuid = text
Temporary fix: Run
insert into auth.schema_migrations values ('20221208132122');
via the sql editor to fix the issue.If the migration error you're seeing looks different, please reach out to supabase.help for assistance.
Beta Was this translation helpful? Give feedback.
All reactions