-
Notifications
You must be signed in to change notification settings - Fork 27.4k
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
[NEXT-526] appDir on Vercel: Cannot read properties of undefined (reading 'getReader') #45627
Comments
I also experience this issue on Vercel and cannot reproduce it locally. In my case, I see these errors only when google or another search engine crawls my website. But, my app doesn't have a lot of visitors, so may be it's not really specific to crawlers. |
I've subjectively also noticed that a lot of the error messages seem to show a crawler UA. Weird. |
Thank you! I have been experiencing this issue as well. Anecdotally, it also appears that crawlers receive the most errors, but I have noticed this occurring to (seemingly) regular users as well. Similarly, the API usage reported by Vercel skyrocketed. Downgrading to Update 1: I can confirm the error occurs on Update 2: In my testing (which is difficult because this error only appears in production on Vercel), it appears that the bug was introduced in |
@venables Thank you for the research! Can you share with us how exactly you tested this? It may be helpful for further research. |
@skwinnik I tested by simply locking in a version of next and deploying it to my sites on Vercel. The function logs would immediately turn red with the error described in this ticket ( |
This comment was marked as off-topic.
This comment was marked as off-topic.
@dluan the error you're facing doesn't appear to be related to the discussion here. It looks like the API you're calling sometimes returns null values, but perhaps it is better to discuss this in another issue. |
@shuding That worked! 🎉 I upgraded to the latest canary ( Thank you, and everyone else who helped solve this! |
Thank you! |
This closed issue has been automatically locked because it had no new activity for a month. 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
This issue only occurs when deployed on Vercel, I cannot reproduce it locally
Local next info:
Which area(s) of Next.js are affected? (leave empty if unsure)
App directory (appDir: true)
Link to the code that reproduces this issue
https://github.com/opensanctions/site/tree/main/app/entities/%5BentityId%5D
To Reproduce
I cannot reproduce this bug on my own computer. I've tried the
vercel
command. I've contacted Vercel support but they told me I should go here because it'sappDir
. I've tried the following to narrow it down, without success:head.tsx
loading.tsx
page.tsx
null
is returned anywhereThe only thing that works is downgrading to next 13.1.1
Describe the Bug
When deploying this site to Vercel, the following error is all over the logs - and API request usage goes up 10x:
Whenever I open the erroring page in the browser, it is displayed without error.
Sometimes the error is also just:
Expected Behavior
I expect the page to be rendered without error.
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
Vercel
NEXT-526
The text was updated successfully, but these errors were encountered: