Issues with building site for the past few days
Not sure what's going on. I'm running this site https://cobblemon.com/
A few days ago I changed the trailer URL and pushed for rebuild. Ever since, any build I do gives 500 Internal Server Error, for example:
https://trailer-fix.development-cobblemon-site.pages.dev/
Even after reverting the change (just embeded URL) and rebuilding, any new build gets hit with 500 Internal Server Error. For now we just had to revert to the last working build which is from about a month ago. Nothing's changed in my code but I'm unable to build at all without the error. Not really sure where to go from here, would appreciate any help! Site was made using NextJS.
EDIT: To clarify, the build goes through successfully. Just that the site gets hit by 500 Internal Server Error after being deployed.
Cobblemon
Cobblemon is an open-source Pokémon mod that is available through Fabric and Forge for Minecraft version 1.20.1.
8 Replies
Error's coming from your function, x-matched-path exists/custom error page so it's running it and then erroring inside, not sure how much of a help I can be with nextjs errors, but you should tail and see if you can get the error first
?pages-logs
If you're looking to tail a Pages Function you can do so in the UI here: https://dash.cloudflare.com?to=/:account/pages/view/:pages-project/:pages-deployment/functions
or with Wrangler:
wrangler pages deployment tail [deploymentId/url]
Using next-on-pages, I assume?
Yep!
Thanks for the feedback, I'll check. Weird that old builds with no changes also does not work anymore, just the things that's already been built still works.
Judging from the runtime logs, seems to be the same issue these fellas were having
https://community.cloudflare.com/t/could-not-resolve-async-hooks/741456/15
https://github.com/cloudflare/next-on-pages/issues/908
Though it was said to have been fixed with next-on-pages 1.13.7, which is the version that's running for us on build. So I'm not certain why that is. Adding this to the package seems to have solved it though
https://github.com/cloudflare/next-on-pages/issues/908#issuecomment-2502738762
GitHub
[🐛 Bug]: ERROR Could not resolve "async_hooks" · Issue #908 · cloud...
next-on-pages environment related information System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 23.5.0: Wed May 1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000 CPU...
Still it's a work-around, not completely satisfied with the resolution. Should I mark as resolved either ways? 🙂
it doesn't matter too much if you mark it or not. I would try what others mentioned in that thread though, check if your compat date is newer then Sep 23rd
https://github.com/cloudflare/next-on-pages/issues/908#issuecomment-2506457110
GitHub
[🐛 Bug]: ERROR Could not resolve "async_hooks" · Issue #908 · cloud...
next-on-pages environment related information System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 23.5.0: Wed May 1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000 CPU...
Thanks will do in a bit. Just happy to be able to finally update the site 5 days after new release 🥲