-
Notifications
You must be signed in to change notification settings - Fork 27.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: invariant: Expected pageData to be a string for app data request but received undefined. This is a bug in Next.js. #47805
Comments
Seeing the same issue, specifically for Google web crawling. TYPE: Serverless Function
|
I'm seeing this as well. Someone found the issue? |
me too |
Hi, can you please confirm this is still an issue in the latest version of Next.js |
Hi @ijjk, Sorry for the delay. New version broke some unrelated functions for me. I previously had a ~90% fail rate on requesting Google indexing. I have tried 10 times since updating and it failed just once. I will monitor over the next days. Thank you. |
NextJs 13.4.3 Error occurs only for User Agent |
We're seeing this quite frequently with our website (https://payloadcms.com) all of a sudden. It happens on different pages each time we deploy, but typically one of these three pages is broken: https://payloadcms.com/cloud-pricing Pages are broken when you navigate directly to the URLs, but the pages work if you navigate to them via links on the website (in the header / footer via This only happens when deployed to Vercel. Can't reproduce running in production locally. |
@ijjk still happening with Next.js |
For everyone else's visibility, we opened a Vercel help discussion here: |
Hi, this has been updated in |
Just a heads up here.. I was still experiencing the issue on |
Hi there, I'm still seeing these error logs in production using
Anyone else? |
Same, still happening with v13.4.6. I think we should re-open the issue. |
This is happening for me on v13.4.7 |
Can anyone reporting this is still occurring provide a deployment or repo with reproduction where they are seeing it? The confirmed cases of this have all been resolved and are working properly in the latest version of Next.js |
@ijjk , here is a deployment running
The UserAgent making the request was Googlebot
|
This ensures we don't bail from static generation unexpectedly due to a bot request as this shouldn't affect ISR handling. Test deployment with patch can be seen here https://test-app-isr-fallback-dwn2neok6-vtest314-ijjk-testing.vercel.app/new Fixes: #47805
Hi, this has been updated in |
Still not working and returning the same error in production on Vercel. Tested on latest 3 versions. |
Have you ever managed to solve this? |
Error occurs in 13.4.10 too |
Error occurs in 13.4.13. randomly see error below from vercel log.
|
Just found out in my case, this error only happen when opening the site in puppeteer. |
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
Which area(s) of Next.js are affected? (leave empty if unsure)
App directory (appDir: true), Data fetching (gS(S)P, getInitialProps), Middleware / Edge (API routes, runtime)
Link to the code that reproduces this issue
I cannot reproduce it locally.
To Reproduce
I don't know exactly how to reproduce it locally, it seems to happen only when deployed on Vercel.
Describe the Bug
When executing a serverless function, I am getting the error
Error: invariant: Expected pageData to be a string for app data request but received undefined. This is a bug in Next.js.
approximately 50% of the times. This error seems to happen only when deployed on vercel. I see the error just by checking the logs.It seems a bug in the cachedData, since this code is what is giving this error: https://github.com/vercel/next.js/pull/46204/files
Here is the Serverless execution success and fail chart by day, almost 50% fails due to this error.
Here is a full error example found in the "Logs":
Expected Behavior
I expect the cache to work as expected and to have no errors in the serveless function executions. My external backend service , where the serverless function gets the data, does not fail, so the expected behaviour is that the serveless function gets the data and cache it as expected.
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
NEXT-1391
The text was updated successfully, but these errors were encountered: