Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chat persistence does not work #16

Open
raivatshah opened this issue Oct 14, 2023 · 4 comments
Open

Chat persistence does not work #16

raivatshah opened this issue Oct 14, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@raivatshah
Copy link

Bug report

I just setup the basic repo, but I realised that the chat history isn't being saved. Upon checking, I realise that the 'chats' table doesn't exist in the supabase db. What could go wrong?

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Setup repo as per instructions
  2. Type in a chat
  3. Check history and DB
@raivatshah raivatshah added the bug Something isn't working label Oct 14, 2023
@raivatshah
Copy link
Author

I think this might have to do with the auth for the repo out of the box. After I clicked deploy with vercel, for all my sign in requests, I get { "message": "No API key found in request", "hint": "No apikey request header or url param was found." }

@raivatshah raivatshah changed the title Chat history not working Auth not working Oct 14, 2023
@raivatshah
Copy link
Author

Nvm, turns out that the auth link in supabase settings needs to have https://. See this stackoverflow discussion.

@raivatshah
Copy link
Author

But the chat issue still persists

@raivatshah raivatshah changed the title Auth not working Chat persistence does not work Oct 15, 2023
@rishadfb
Copy link

rishadfb commented Apr 28, 2024

I was able to fix the chat history persistence by migrating to SSR from auth helpers.

Once I wrap up my project, I'll post a PR for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants