await Prisma create never resolves using PlanetScale
I'm using Next API routes as my backend, and there is the logic inside:
issue: the prisma promise never resolves
and there is no successful response in my front-end
- this issue started when i started using planetscale database in development mode
- all my get requests are being fetch successfully
- i'm using the pscale connection proxy, on port 3309
- the issue is occurring both in chrome and insomnia
here is the front-end fetch in case it comes handy
2 Replies
Does it show any error when you prisma generate?
was a silly mistake, i needed to end the response method, using .end() or .json()