Replies: 1 comment
|
Hello, has anyone notice this behaviour, is this expected!? 👀 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
Hello everyone 👋 hope you can help me understand something about rendering errors.

The issue:
I am throwing an error on a getServerSideProps function (and yes, I am still using the pages router for now, let's not discuss this please), and I want to render that error message. Running the app in Production I can see my correct rendered error page on the browser network tab but it gets overridden and I can't seem to understand why!
To try this out you can clone this repo https://github.com/socarlosb/error_test and follow the steps:
npm i)npm run start)Expected:
To see a red page with the "message: Server error with data: test api / 300"
Current:
Showing "message: 500 - Internal Server Error."
Any help or tips will be appreciated. Thank you 👍
Additional information
No response
Example
No response
All reactions