Cloudflare DevelopersCD
Cloudflare Developers9mo ago
5 replies
Vincent

OpenNext on Worker giving back server errors

Hi all, I was running on Workers perfectly. Until today. I got sometimes this error:

{
"message": "Server failed to respond.",
"details": {}
}

This is returned in a JSON to the frontend. When refreshing, the page is working again. Is this a worker error? Or anything else going on?

I see this in the logs of the website the following thing:
NextJS request failed. TypeError: Cannot read properties of undefined (reading 'require')

Does anybody knows what I can do? I tried everything, like disable all caching. But can't figure out whats wrong
Was this page helpful?