auth-js icon indicating copy to clipboard operation
auth-js copied to clipboard

Gotrue server throwing 500 error

Open kylerummens opened this issue 3 years ago • 1 comments

Bug report

Describe the bug

On my client API, i have a validation middleware that that takes a JWT from the authorization header and passes it to supabase.auth.api.getUser(jwt).

This has been working for months on our production api, but just today started throwing a 500 error for all requests:

{ message: 'Internal server error', status: 500 }

I have already made a ticket in the Supabase dashboard but have not received a response.

kylerummens avatar Sep 09 '22 04:09 kylerummens

I've been able to do a small amount of debugging from the Supabase Auth logs. It seems like this is the log from GoTrue that is a little more insightful:

{
  "component":"api",
  "error":"Session not found",
  "level":"error",
  "method":"GET",
  "msg":"Unhandled server error: Session not found",
  "path":"/user",
  "referer":"",
  "remote_addr":"****************",
  "timestamp":"2022-09-09T04:33:43Z"
}

kylerummens avatar Sep 09 '22 04:09 kylerummens

Please open a support ticket if you need immediate help with a project.

Issues on this repository are for API bugs and enhancements only.

hf avatar Dec 30 '22 18:12 hf