In my case, this issue was caused by using .com instead of .co in the URL of the Supabase endpoint.
.com
.co