Random 500 errors on production server. Static app is still fetching data ? #70073
Unanswered
atissedrescaleway
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
TL;DR : App is build statically with
getStaticProps
, still tries to fetch at request time, fails since API is protected under internal infra.Our stack :
v14.2.5
) with pages router for our production website.output: standalone
optionThe issue :
Occasionally, we notice in the logs some 500 Internal Server Error. These logs says
Error: Fetch failed..
.--> Indeed, the fetch is logically failing because the public serverless container does not have access to the internal API where we have our data.
But why is the app is even fetching data in the first place, since none of our pages are using
getServerSideProps
?--> That's the thing we don't understand. We're building the site statically so it doesn't need no fetch anything at request time.
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions