Next.js Discord

Discord Forum

Getting 500 internal error on my API route on Vercel

Unanswered
Gharial posted this in #help-forum
Open in Discord
GharialOP
I'm getting a 500 internal server error on my API route when push to Vercel, work all fine locally.
Any suggestion please?

5 Replies

GharialOP
Getting this errors log: [GET] /api/weather/current_weather status=500 no issue when run locally
Normally you should get a little more error details. Are you able to share these details?
GharialOP
I've also got this error log: ⨯ Error: Failed to fetch weather data
at o (/var/task/apps/weather-app/.next/server/app/api/weather/five_days_timeline_weather/route.js:1:798)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async /var/task/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:6:41960
Thai
Probably an api error
GharialOP
Weird no issue locally