Internal Server Error on deployed site
Unanswered
Red ant posted this in #help-forum
Red antOP
I have a Nextjs 13.5.6 (pages) site that gets data from Contentful, it's deployed on Netlify. I am getting server for specific pages on the deployed version. What I find weird is that other pages that also fetch data are working fine.
The pages that are failing work fine on my machine and I am stumped as to where I should be looking. I assumed since it was a server error, it's something to do with how I am getting the data?
The pages that are returning the errors are:
-
-
The query:
The fetch:
The pages that are failing work fine on my machine and I am stumped as to where I should be looking. I assumed since it was a server error, it's something to do with how I am getting the data?
The pages that are returning the errors are:
-
pages/articles/life.js-
pages/articless/stories.jsThe query:
export async function getCatholicismArticles() {
const query = gql`
{
articleCollection(
order: publishedAt_DESC
where: { category: { title: "Catholicism" } }
) {
items {
title
slug
excerpt
publishedAt
category {
title
categorySlug
}
}
}
}
`;
return graphQLClient.request(query);
}The fetch:
`
export async function getStaticProps() {
const data = await getCatholicismArticles();
const articles = data.articleCollection.items;
console.log(articles);
return {
props: { articles },
// depends on users visiting the page
revalidate: 28800,
};
}1 Reply
Red antOP
The browser console says this:
Error: Failed to load static props
NextJS 24
getData
promise callback*2997/fetchNextData/getData/<
promise callback*getData
fetchNextData
<anonymous>
_getData
getRouteInfo
change
push
o
navigate
onClick
onClick
Nb
Tb
nf
nf
se
hd
Rk
Jb
hd
fd
ed
main-7af7d5359a6145de.js:1:73453
NextJS 19
handleRouteInfoError
getRouteInfo
change
push
o
navigate
onClick
onClick
Nb
Tb
nf
nf
se
hd
Rk
Jb
hd
fd
ed