Error: Failed to load static props at eval /lib/router/router.js
Unanswered
American Bobtail posted this in #help-forum
American BobtailOP
I'm facing this issue and here is how it happens
1. I load a page with getServerSideProps and in that page I have a link that routes to another SSR page
2. In the second SSR page there is a button to submit that sends a request that updates specific piece of data in the first SSR page
3. When I press back button or navigate to that first page I encounter an error (in the title)
I'm not sure why or how it happens, here are more details
Browser console
Terminal
When using axios
When I tried fetch I get this
Even though if reloaded the page it works fine and the data is updated and I don't get any error
1. I load a page with getServerSideProps and in that page I have a link that routes to another SSR page
2. In the second SSR page there is a button to submit that sends a request that updates specific piece of data in the first SSR page
3. When I press back button or navigate to that first page I encounter an error (in the title)
I'm not sure why or how it happens, here are more details
Browser console
Error: Failed to load static props
at eval (webpack-internal:///./node_modules/next/dist/shared/lib/router/router.js:451:33) next-dev.js:20Terminal
When using axios
Error: Request failed with status code 502
at createError node_modules\axios\lib\core\createError.js:16:15)When I tried fetch I get this
message: 'Internal server error'Even though if reloaded the page it works fine and the data is updated and I don't get any error
1 Reply
American BobtailOP
bump