Pages application deployed, can access it via pages.dev but custom domain 404's

I have a remix site deployed to twitchroulette2.pages.dev and have https://twitchroulette.net/ pointing to it via the custom domain flow. The domain is 404ing and I'm unsure how to debug. Any help would be appreciated.
twitchroulette.net
Find a new streamer friend
14 Replies
Chaika
Chaikaā€¢10mo ago
For me they look the exact same, the Discord Embed can seem to resolve it fine as well
No description
Chaika
Chaikaā€¢10mo ago
what error do you specifically get? Is it possible it's site not found/ dns not found error and not a 404?
ellg
ellgā€¢10mo ago
How weird, everyone I've asked try to access it has gotten a 404 er sorry, youre right, its a DNS not found issue not 404, sorry its late
Chaika
Chaikaā€¢10mo ago
If you just created it, and they visited too early, it's just DNS Cache
ellg
ellgā€¢10mo ago
Well now its resolving, however im getting an Unexpected Server Error and getting a 500
Chaika
Chaikaā€¢10mo ago
CF branded, or what does it look like? (screenshot would be helpful)
ellg
ellgā€¢10mo ago
not CF branded worked perfectly fine in pages.dev It's coming up as a 200 when I look at the request in the real time logs view but I dont actually see that
Chaika
Chaikaā€¢10mo ago
hmmm, it looks like this has been reported before with Remix, related to the worker/function taking too long to start up or I guess any other error that occurs during start up: https://discord.com/channels/595317990191398933/1104200785451036793/1105138624472817684
ellg
ellgā€¢10mo ago
but only when using a custom domain? This works fine on workers.dev er, pages.dev
Chaika
Chaikaā€¢10mo ago
start up times/etc can vary, it depends exactly what's going wrong. For me, your site works 100% fine
ellg
ellgā€¢10mo ago
https://twitchroulette2.pages.dev/ like the DNS entry is just a CNAME to this which loads perfectly fine
twitchroulette.net
Find a new streamer friend
ellg
ellgā€¢10mo ago
but I get a 500 when visiting via https://twitchroulette.net
twitchroulette.net
Find a new streamer friend
Chaika
Chaikaā€¢10mo ago
hmm yea, it works fine for me and fine for the embed, so it's hard to debug. You can šŸ” for references for "unexpected server error" in this Discord, and the vast majority are Remix related, something to do with taking too long to startup, startup errors, etc. Some of which appear to be reported in function logs, I'd look that way Could try Remix discord/github etc for help as well since it def seems remix related, I don't know that much about Remix myself Looking at past errors, including the one I linked above: https://discord.com/channels/595317990191398933/1104200785451036793/1104200785451036793 Seems to be that it would show as success (because the worker didn't throw the error), but internally the error is handled by Remix and status code set to 500 with possible additional info in logs