Next.js Discord

Discord Forum

SERVER SIDE ERROR

Unanswered
dishant0406 posted this in #help-forum
Open in Discord
I am getting this error while requesting on the production deployment
An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error

I am getting this error when I deploying the build but when I build it locally using npm run build and then start by npm run start it is working fine

here is the code

2 Replies

Broad-snouted Caiman
did you solve it?
Lapland Longspur
Are you seeing this because one of your fetch resulted in an error ?
If so, as per next doc "During production, the Error object forwarded to the client only includes a generic message and digest property."


Hence why you may be seein "An error occured in Server Components render...."