Not Found Error on sveltekit project

I am getting a weird error "Not Found" on my sveltekit hosted on cloudflare worker whenever i do CMD+ShIFT+R, its shows not found error, never used to come until today. nothing was updated on my site since weeks.
No description
52 Replies
Adam
Adam•4w ago
Can you access the worker in the CF dashboard?
Rahul gangotri
Rahul gangotriOP•4w ago
yes
Rahul gangotri
Rahul gangotriOP•4w ago
No description
Rahul gangotri
Rahul gangotriOP•4w ago
able to access correct on jhs-frontend.justhomestayinfo.workers.dev only issue with custom domain i checked my DNS it looks fine can you please help bro? i really don't know what is the problem 😅
Adam
Adam•4w ago
Ah definitely a DNS issue then, what is the custom domain? I can help in about 15 min
Rahul gangotri
Rahul gangotriOP•4w ago
ok justhomestay.in
Adam
Adam•4w ago
Your website is up!
Rahul gangotri
Rahul gangotriOP•4w ago
still same bro 😅
No description
Rahul gangotri
Rahul gangotriOP•4w ago
do cmd+shift+r couple of times and you will see the issue
Rahul gangotri
Rahul gangotriOP•4w ago
see
Adam
Adam•4w ago
I am in chrome and cannot reproduce, which browser are you using?
Rahul gangotri
Rahul gangotriOP•4w ago
firefox and chrome both
Rahul gangotri
Rahul gangotriOP•4w ago
see in chrome
No description
Rahul gangotri
Rahul gangotriOP•4w ago
you can check my dns record? do you need any access?
Adam
Adam•4w ago
Interesting, intermittent 404. Can you reproduce using the jhs-frontend.justhomestayinfo.workers.dev domain?
Rahul gangotri
Rahul gangotriOP•4w ago
let me check
Adam
Adam•4w ago
I think we can rule out DNS since the 404 is intermittent, it is more likely an issue with caching or svelte
Rahul gangotri
Rahul gangotriOP•4w ago
unable to reproduce in worker domain but if its a svelte issue then worker domain will also be similar right? only able to see this with custom domain
Adam
Adam•4w ago
Ok and this only happens on the homepage for you? Or other pages as well?
Rahul gangotri
Rahul gangotriOP•4w ago
ok let me check on some other page happens in other pages too no issues with jhs-frontend.justhomestayinfo.workers.dev at all 😂
Adam
Adam•4w ago
so weird! Im doing some digging
Rahul gangotri
Rahul gangotriOP•4w ago
thanks for your help tho 😅
No description
Adam
Adam•4w ago
Can you trigger a 404, and inspect the 'cf-cache-status' response header? I would do it myself but I really cannot reproduce
Rahul gangotri
Rahul gangotriOP•4w ago
can't see that
No description
Rahul gangotri
Rahul gangotriOP•4w ago
i can share the login details for the dashboard
Rahul gangotri
Rahul gangotriOP•4w ago
see my cache settings
Rahul gangotri
Rahul gangotriOP•4w ago
i think its all default only as my dumb client keeps on changing things a lot
Adam
Adam•4w ago
Actually sorry can you screenshot the response headers for one of the css or js files that is 404 status
Rahul gangotri
Rahul gangotriOP•4w ago
ok
Adam
Adam•4w ago
instead of the HTML route Right now I am trying to rule out a caching issue
Rahul gangotri
Rahul gangotriOP•4w ago
all the css/js is 200, only root / and favicon is 404
Adam
Adam•4w ago
Oh interesting, in the 3rd screenshot you posted I saw some css files
Rahul gangotri
Rahul gangotriOP•4w ago
No description
Rahul gangotri
Rahul gangotriOP•4w ago
no header content
Rahul gangotri
Rahul gangotriOP•4w ago
sorry, this is header tab
No description
Rahul gangotri
Rahul gangotriOP•4w ago
should i purge cache?
Rahul gangotri
Rahul gangotriOP•4w ago
i was just hard reloading and found that favicon route is showing the html content
No description
Adam
Adam•4w ago
haha wut Can you open the headers tab on that
Rahul gangotri
Rahul gangotriOP•4w ago
No description
Rahul gangotri
Rahul gangotriOP•4w ago
here is my worker wrangler.jsonc
No description
Adam
Adam•4w ago
Oh its probablyy the fallback 404 page
Rahul gangotri
Rahul gangotriOP•4w ago
oh ok
Adam
Adam•4w ago
Ok next steps here, are you able to find any real time worker logs for any uncaught exceptions that throw during the 404? might have to trigger it again with your logs open
Rahul gangotri
Rahul gangotriOP•4w ago
let me enable realtime logs and check
Adam
Adam•4w ago
Im wondering if you have some server side code that occasionally fails, and we are seeing the result of that
Rahul gangotri
Rahul gangotriOP•4w ago
yes, enabling live logs and doing it but working everytime with worker.dev domain?
Adam
Adam•4w ago
yes that is suspicious
Rahul gangotri
Rahul gangotriOP•4w ago
No description
No description
Rahul gangotri
Rahul gangotriOP•4w ago
this is in client account, i have other personal applications on my account, that is working just fine can't i share this account login details with you? that will be easier?
Adam
Adam•4w ago
Ok at this point, my assumption/gut feeling is that you're experiencing a silent failure on the server, and it's not being logged or caught. I think the 404s are a symptom of this. The next step would be to implement some middleware that wraps every network request, and will catch any errors. Would love to help with this, but I need to head out the door in a few minutes. Want to DM me and I can help later?
Rahul gangotri
Rahul gangotriOP•4w ago
sure i can DM
Adam
Adam•4w ago
I would not do this with anyone FYI!

Did you find this page helpful?