fullstack-music icon indicating copy to clipboard operation
fullstack-music copied to clipboard

Sign Up API Call Error

Open StephtheITSloth opened this issue 3 years ago • 2 comments

Hey! I tried to send a signup request, but I am only getting the 401 User already exists error, which is strange. I have checked prisma studio to make sure that there wasn't a user already created with the same credentials, and of course there wasn't. If anyone was able to make it work please let me know. Thank you!!

StephtheITSloth avatar Sep 11 '22 21:09 StephtheITSloth

Getting this same error. Tried the below ways

  1. tried removing "" in DATABASE_URL
  2. tried deleting all node modules and installing them again
  3. also tried to create a new Prisma client in the signup.ts file None of the above methods worked for me.

If anyone gets around this issue please share your solution.

imoizuddin avatar Jan 28 '23 19:01 imoizuddin

Thats because you need to modify the api/signup.ts file so the payload that you send to the db also contains firstName and lastName. Then you need to properly modify the other files. However, of course, accounts created afterwards wont have the playlists in the sidebar, since those are only specific to [email protected], due to relation user-playlist

Mikimann avatar Apr 07 '23 13:04 Mikimann