I am gettng internal server error and not understanding why, how to get logs
anyway to debug this?
Solution:Jump to solution
That line is outputting the result of a GET request
I would imagine the 500 is emitting some error to the log server-side? Are you sure there's nothing else in your console?
You could try adding logging to your Next.js API route handler like this and interrogating the request to see if anything looks odd: ...
5 Replies
@Ping you know anything about this?
Can I see your auth config?
Solution
That line is outputting the result of a GET request
I would imagine the 500 is emitting some error to the log server-side? Are you sure there's nothing else in your console?
You could try adding logging to your Next.js API route handler like this and interrogating the request to see if anything looks odd:
It's hard to help without more details. What action do you take to trigger the error?
actually its fixed idk the reason, but it seems to be fixed, I moved from prisma to drizzle
anyway thanks for the help this would help with logging anyway