chatbot-ui icon indicating copy to clipboard operation
chatbot-ui copied to clipboard

JSON object requested, multiple (or no) rows returned

Open Trapper4888 opened this issue 1 year ago • 2 comments

After a fresh install on macos, I get this on login page:

 ⨯ app/[locale]/login/page.tsx (45:12) @ Login
 ⨯ Error: JSON object requested, multiple (or no) rows returned
    at Login (./app/[locale]/login/page.tsx:51:19)
  43 |
  44 |     if (!homeWorkspace) {
> 45 |       throw new Error(error.message)
     |            ^
  46 |     }
  47 |
  48 |     return redirect(`/${homeWorkspace.id}/chat`)
 ⚠ Fast Refresh had to perform a full reload due to a runtime error.
 ⨯ app/[locale]/login/page.tsx (45:12) @ Login
 ⨯ Error: JSON object requested, multiple (or no) rows returned
    at Login (./app/[locale]/login/page.tsx:51:19)
  43 |
  44 |     if (!homeWorkspace) {
> 45 |       throw new Error(error.message)
     |            ^
  46 |     }
  47 |
  48 |     return redirect(`/${homeWorkspace.id}/chat`)
 ⨯ app/[locale]/login/page.tsx (45:12) @ Login
 ⨯ Error: JSON object requested, multiple (or no) rows returned
    at Login (./app/[locale]/login/page.tsx:51:19)
digest: "4037407642"
  43 |
  44 |     if (!homeWorkspace) {
> 45 |       throw new Error(error.message)
     |            ^
  46 |     }
  47 |
  48 |     return redirect(`/${homeWorkspace.id}/chat`)

I had the same error on my old install after an update. I've deleted all supabase containers, init it and did a supabase db reset, it changed nothing.

Trapper4888 avatar Feb 09 '24 10:02 Trapper4888

I also got this. on fresh install (today) there was no error, but after I did a db reset, this error popped up. in the supabase console, I can see that there is no workspace (no rows in any db table)

ah... it looks like I have an auth token, but no corresponding db rows

fixed by clearing my cookies and signing up again

kmdavis avatar Feb 09 '24 18:02 kmdavis

I also got this. on fresh install (today) there was no error, but after I did a db reset, this error popped up. in the supabase console, I can see that there is no workspace (no rows in any db table)

ah... it looks like I have an auth token, but no corresponding db rows

fixed by clearing my cookies and signing up again

Removed cookies and it works, thx a lot!!!

Trapper4888 avatar Feb 09 '24 23:02 Trapper4888