You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any RSC page as documented by NEXt.js that has and top level await fetch call will cause an "internal server error" and on console.
Error: Disallowed operation called within global scope. Asynchronous I/O (ex: fetch() or connect()), setting a timeout, and generating random values are not allowed within global scope. To fix this error, perform this operation within a handler. https://developers.cloudflare.com/workers/runtime-apis/handlers/
Description
Any RSC page as documented by NEXt.js that has and top level await fetch call will cause an "internal server error"
gavan1
changed the title
[🐛 Bug]: cloudflare broken with Next 5.2.1 [asycn fetch]
[🐛 Bug]: cloudflare broken with Next 5.2.1 [await fetch]
Mar 11, 2025
gavan1
changed the title
[🐛 Bug]: cloudflare broken with Next 5.2.1 [await fetch]
[🐛 Bug]: cloudflare broken with Next ^5.2.0 [await fetch]
Mar 11, 2025
next-on-pages environment related information
Any RSC page as documented by NEXt.js that has and top level await fetch call will cause an "internal server error" and on console.
Error: Disallowed operation called within global scope. Asynchronous I/O (ex: fetch() or connect()), setting a timeout, and generating random values are not allowed within global scope. To fix this error, perform this operation within a handler. https://developers.cloudflare.com/workers/runtime-apis/handlers/
Description
Any RSC page as documented by NEXt.js that has and top level await fetch call will cause an "internal server error"
Reproduction
The text was updated successfully, but these errors were encountered: