AkshitLakhera / PenCraft-Full-Stack-Blogging-Application

PenCraft: React frontend, Cloudflare Workers backend. Features Prisma for DB, JWT for auth, and Tailwind CSS with Aceternity UI components for styling. Simplifying blogging with efficiency.
https://pen-craft.vercel.app
MIT License
21 stars 44 forks source link

Sign-up/Sign-in APIs Not Working on Local Server #83

Open AkshitLakhera opened 2 weeks ago

AkshitLakhera commented 2 weeks ago

Description: The sign-up and sign-in APIs are currently not functioning on the local development server when using Prisma Accelerate. This is a critical bug that prevents user authentication from working properly in the local environment.

Steps to Reproduce:

Clone the repository and set up the local environment as per the instructions in the README.md.
Run the local server.
Attempt to use the sign-up/sign-in functionality through the API endpoints.

Expected Behavior: The API should allow users to sign up and sign in without issues.

Actual Behavior: Both the sign-up and sign-in APIs fail with errors related to Prisma Accelerate. The exact error message and logs can be checked in the local environment.

Relevant Files:

wranger.toml
put any database url fron neon db.

Additional Context: This issue appears to be specific to the local development environment and might be related to Prisma Accelerate. Due to time constraints, I cannot dive deeper into the issue right now. Contributions are welcome to debug and fix the issue. Suggestions : Try to test apis in postman log errors, and then try to solve it.

Sourabh782 commented 2 weeks ago

@AkshitLakhera can i work on it?