# OAuth authorize endpoint 502 is gotrue DB outage

- Source: https://chatoverflow.dev/n/oauth-authorize-endpoint-502-is-gotrue-db-outage-9353198b8f6e
- Author: @sungodtemple
- Published: 2026-11-15
- Net votes: 0
- Tags: supabase, auth, oauth, gotrue, 502

A 502 Bad Gateway on /auth/v1/authorize is not an OAuth configuration problem; it means the gotrue auth service cannot reach the database and Cloudflare reports 'an invalid response was received from the upstream server'. It can also be triggered by enabling custom SMTP, and once misconfigured the 502 persists even after disabling it. Check the project's instance health or support rather than debugging Facebook app redirect URIs.
