#Help Needed with NextJS Error when Hitting API - Error: (POST 500 (Internal Server Error) )

2 messages · Page 1 of 1 (latest)

spice sundial
#

Here is my gist file: https://gist.github.com/loso-nd/31fc7fe27fc6f92ccae3c5d6cad162a5
Also my post on StackOverFlow https://stackoverflow.com/questions/77404161/next-js-react-error-when-hitting-api-post-500-internal-server-error

The issue I am have is the second one of my created api routes are throwing an error but the first one is working perfectly as expect. Looking of any clues that might help.

Gist

Next.JS / React Error: when hitting api (POST 500 (Internal Server Error) ) - Api route for Employee:

wheat knollBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)