An error occurred in the Server Components render.
Unanswered
Brown bear posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/0.png)
Brown bearOP
In production i get this error message, but it work just fine in dev environment
![Image](https://cdn.discordapp.com/attachments/1172508490351251486/1172508490560978985/Screenshot_2023-11-10_at_09.06.44.png?ex=656092a0&is=654e1da0&hm=0073ad315421a3b6018a3fe40190e7baf7395d124f473b209b935889f6209cad&)
8 Replies
![Avatar](https://cdn.discordapp.com/embed/avatars/0.png)
Brown bearOP
Here is my code
![Image](https://cdn.discordapp.com/attachments/1172508490351251486/1172508755670347847/Screenshot_2023-11-10_at_09.08.17.png?ex=656092df&is=654e1ddf&hm=903462efa5cd3a77ad56adb54ebfb4186b8a14bbca174301e0f724f5b982252c&)
![Image](https://cdn.discordapp.com/attachments/1172508490351251486/1172508755993296958/Screenshot_2023-11-10_at_09.11.04.png?ex=656092df&is=654e1ddf&hm=12f51dece5f8c7145069f463f8650173ec9877eec5edaed212ad9438d59947bd&)
![Avatar](https://cdn.discordapp.com/avatars/890486507872342027/cba9267c0173c6acfde7fa4ba0e70f94.webp?size=256)
Arinji
Send us the error on vercel as well
![Avatar](https://cdn.discordapp.com/embed/avatars/0.png)
Brown bearOP
Error: Convencional inativo
at a (/var/task/.next/server/app/(dashboard)/inscricao/page.js:1:5063)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async /var/task/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:15:489
at async rc (/var/task/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:14:5137)
at async rj (/var/task/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:15:21988)
at async et (/var/task/node_modules/next/dist/compiled/next-server/server.runtime.prod.js:16:24802)
at async es.responseCache.get.routeKind (/var/task/node_modules/next/dist/compiled/next-server/server.runtime.prod.js:17:1006)
at async rX.renderToResponseWithComponentsImpl (/var/task/node_modules/next/dist/compiled/next-server/server.runtime.prod.js:17:463)
at async rX.renderPageComponent (/var/task/node_modules/next/dist/compiled/next-server/server.runtime.prod.js:17:4676)
at async rX.renderToResponseImpl (/var/task/node_modules/next/dist/compiled/next-server/server.runtime.prod.js:17:5259)
![Avatar](https://cdn.discordapp.com/embed/avatars/0.png)
Brown bearOP
That's in development
![Image](https://cdn.discordapp.com/attachments/1172508490351251486/1172511833895227423/Screenshot_2023-11-10_at_09.22.40.png?ex=656095bd&is=654e20bd&hm=252601586643cd38e49c28620bd2c7a47737ebd487a150f9468c6ae1a5b4f315&)
![Avatar](https://cdn.discordapp.com/avatars/657067112434499595/aff4eeb34922ca980b0d5fbb5bc60c21.webp?size=256)
risky
im going to assume you can't use
try catch
for doing this method of transfering dataif it can show the value in dev but nothingness in prod
![Avatar](https://cdn.discordapp.com/embed/avatars/0.png)
Brown bearOP
so, how i can catch errors from server actions and show them in toasts?
![Avatar](https://cdn.discordapp.com/avatars/657067112434499595/aff4eeb34922ca980b0d5fbb5bc60c21.webp?size=256)
risky
personally, id return an object saying if it successed and have either the error message or success data (but bool to easily know)