_error returning 200 on App router page #67816
Unanswered
jcole356
asked this question in
App Router
Replies: 0 comments
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.
-
We're currently receiving a large number of
Invariant: expected pageData to be a string, got undefinederrors thrown frombase-server. I am unable to reproduce this outside of production and have no insight to the root cause.To make matters worse, it appears that when this error occurs, Next.js seems to be returning
_errorwith a status 200. This is getting cached in our edge due to the 200 status.Isn't
_errorsupposed to be a Page router concept? I was surprised to see this returned from the App router at all.Why is it returned with status 200? Isn't returning an error page with status 200 an anti-pattern?
Beta Was this translation helpful? Give feedback.
All reactions