Next.js Discord

Discord Forum

Blog Posts Prefetch throwing 500 error in the console

Unanswered
Ichneumonid wasp posted this in #help-forum
Open in Discord
Ichneumonid waspOP
I just upgraded to the latest version of next from 13.4.9. When my app is built and running in production, I have a blog where I have pre-rendered the first 5 blog posts, while the other 100 are dynamically built as the user scrolls the page of other posts. After upgrading to v14.0.4, everytime I see a post that wasn't prebuilt on the webpage I'm getting a 500 error, but when I look on the server logs, it shows the post being fetched and data built for the post. Which technically I guess I understand, but why is it throwing a 500 if it knows its supposed to fetch the post because its not been built yet?

You can see in the image what I'm talking about, i get a 500 error but the server is fetching the posts....

2 Replies

Toyger
does it shows something on page itself?
@Toyger does it shows something on page itself?
Ichneumonid waspOP
I did some updates to node and a couple packages in my project and it seems to have resolved itself 👍 Thanks for asking