Next.js Discord

Discord Forum

Internal Server Error in production - App Router Server Actions

Unanswered
Nile tilapia posted this in #help-forum
Open in Discord
Nile tilapiaOP
Hello,

I am just deployed my Nextjs app on Vercel and I am running into issues regarding my server actions. All of my html and css seem to be showing up, but my function that is running on the server is running into an Internal Server Error which is preventing my app from displaying the information.

Here is the log that I am getting:
Error getting bounties: s [Error]: Unexpected status code: 500
    at R.request (/var/task/zomdev/.next/server/chunks/110.js:35:31129)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async tS.getDynamicFields (/var/task/zomdev/.next/server/chunks/110.js:35:23600)
    at async d (/var/task/zomdev/.next/server/chunks/230.js:1:3319)
    at async i (/var/task/zomdev/.next/server/chunks/230.js:1:3194)
    at async i (/var/task/zomdev/.next/server/chunks/230.js:1:620)
    at async c (/var/task/zomdev/.next/server/app/bounties/page.js:1:4827) {
  status: 500,
  statusText: 'Internal Server Error'
}


I am able to pinpoint which files are causing the issue, but not entirely sure how to debug since it is working fine on localhost. Any help would be appreciated!

0 Replies