Getting 401 when connecting to local DB #32518
Unanswered
adamhinton
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm getting a 401 error in my Next TS project when attempting to connect to my local supabase db.
Error: Either "typeerror failed to fetch" Or a 401 unauthorized, depending on which address I try to use.
I know that the DB is running, so I hope you can just provide me the correct local address. I am doing testing so I can't do this on the remote prod DB, I need the local one.
I've been trying different addresses in my local env file and none have worked. I'm showing the different ones I've tried below.
I'm on Windows, using the CLI, on Postgres. Please let me know if you need any other info.
Thank you so much!
local.env:
Page.tsx where I'm calling the API from:
Beta Was this translation helpful? Give feedback.
All reactions