3 ms·
Thanks for reporting that! Could you tell me what device this was on? I've tried it on a couple of different iOS devices (my iPhone 15 Pro, an iPhone 15 and an
by woadwarrior01 3y ago
Thanks for reporting that! Could you tell me what device this was on? I've tried it on a couple of different iOS devices (my iPhone 15 Pro, an iPhone 15 and an iPhone 13 mini) with iOS Safari and Firefox Focus, but couldn't reproduce it. As you can probably tell, I'm not a front-end developer. :)
- filoleg 3y agoUpdating this comment, because I just figured out the root cause, and it is as silly as it can get. Leaving the original comment below the horizontal line just in case. TLDR: your website wasn’t at fault itself (well, i think the error handling could’ve been much better with an explicit failure, but that’s just nitpicking). The issue was that the link to the website (the one in the OP) would lead me to `https://privatellm.app/%3C/p%3E https://privatellm.app/%3C/p%3E` (with the extraneous part decoding to a closing tag </p>) instead of just `https://privatellm.app/ https://privatellm.app/`. Once I went down the rabbithole, I noticed the URL, manually changed it, and the website worked. Decided to repro it by going back to the HN post, clicking the link, and yep, the website failed again. Looks like there was zero fault of your own, and it is a bug in the HN reader app I use does this for that specific URL. ——————————————— It was on iPhone 15 Max Pro, iOS 17.3.1. I rebooted the device just for posterity today, still reproducing the same behavior. Seems like it might be JS-related, because I finally made out what the split-second flashing UI says. It is a giant “Oh no, you stumbled upon a rarity” message, with a purple “go back home” button. After it flashes and i see the white screen, i check HTML and it is pretty much empty (aside from a bunch of script tags in the body), which is why I suspect it is JS related and not CSS. The dev console is spewing errors, but it isnt super helpful due to the JS bundle being minified[0]. 0. I use Web Inspector extension for mobile Safari to check on network calls/js console/inspect DOM. If someone is looking for something like chrome dev tools on mobile Safari, that’s what I use and can recommend. Maybe there is something better out there now, but that’s the one I discovered a few months ago and found the be a solid “all in one package” (e.g., there is an extension I’ve used prior that does a slightly better job of inspecting DOM, but it cannot do anything else like JS console/network requests/etcH
- woadwarrior01 3y agoThanks for such a detailed report! The link to the website in the OP doesn't seem to be clickable for me on both Safari and Mobile Safari. I think I'll just explicitly add a redirect from `/%3C/p%3E` to `/` immediately and then fix the broken 404 page next. Thanks again!
- filoleg 3y agoNo worries at all, and thanks for the app, i like it quite a bit. I wouldnt recommend adding that redirect explicitly, and instead just make all invalid url paths redirect to the home page. Mostly because I am certain that the issue with the link for me is happening due to the HN reader app I am using and how it renders URLs (which is how they are clickable for me in the first place).