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

Server actions issues #50

Closed
firstaxel opened this issue Mar 10, 2024 · 4 comments
Closed

Server actions issues #50

firstaxel opened this issue Mar 10, 2024 · 4 comments

Comments

@firstaxel
Copy link

Describe the bug
A clear and concise description of what the bug is
Error with the server actions used for auth in the template.

To Reproduce
Steps to reproduce the behavior:

  1. Go to auth page
  2. And try to login or sign up
  3. See error

Expected behavior
A clear and concise description of what you expected to happen.
I am getting async await error await are supposed to be used in async functions I tried to find out the issues but I think it is directly from the functions itself

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • Browser [e.g. chrome, edge, brave ]
@Fr3akyMurk
Copy link
Contributor

Fr3akyMurk commented Mar 10, 2024

This seems like an error i used to have, please send the error log that you get, don't just say "I have an error on login" as that is not enough information for us to process.

Furthermore, what database do you use, is this on a local machine or up on vercel?

@firstaxel
Copy link
Author

sorry for the misdirection the error gets displayed as i trigger the auth server actions from the auth related pages, including login, register , even the forget password pages,
i used a local database and this is on my local machine
Screenshot from 2024-03-10 19-43-44

this is the screenshot i got from my browser and from my code editor
Screenshot from 2024-03-10 19-43-19

@Fr3akyMurk
Copy link
Contributor

Refer to this issue.

This app was made to use planetscale and be hosted on vercel not with local db's in mind.
(this method only supports mysql and is not really tested for long periods but it will solve your issues)

@firstaxel
Copy link
Author

Thanks very much the error is gone finally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants