SupabaseS
Supabase2y ago
BPM

Cannot signin/signup 401 unauthorized

I managed to setup a selfhosted docker for supabase, but it is not working 100% as it should. First, I keep getting studio being unhealthy but I can access it just fine at "IP_ADDRESS:3000" from my client.

However, my main issue is that when I tried the nextjs subscription example using supabase it keeps giving me 401 error (unauthorized). I checked the request and it has the correct ANON_KEY as the apiKey header and the Authorization Bearer header.

When I try to create a new account, I see on my console that it sent:
POST http://MY_SERVER_IP:8000/auth/v1/signup?redirect_to={{CALLBACK_URL}} 401 (Unauthorized)


And a similar error when trying to login to an account I made through studio dashboard.
Was this page helpful?