-
I set up a GitHub action to check links on my personal site, which happens to contain a Reddit link. Annoyingly, it fails with a 403, and I'm not sure what to do with it. I've reproduced this issue in a test repo; the Lychee job generated this report: j-hui/lychee-test#2. Note that both valid and invalid links generate a 403, meaning I can't just filter out 403 responses or something like that. Even worse, Lychee seems to report the invalid Reddit link as OK when I run $ lychee --verbose README.md
✔ [200] file:///Users/j-hui/Documents/personal/lychee-test/files/file.txt
✔ [200] https://github.com/j-hui/lychee-test
✔ [200] https://www.reddit.com/r/pics/comments/deadbeef/this_post_does_not_exist/
✔ [200] https://lkml.org/lkml/2022/9/19/1105
✔ [200] https://www.reddit.com/r/pics/comments/92dd8/test_post_please_ignore/
5/5 ETA 0s ████████████████████ Finished extracting links
🔍 5 Total ✅ 5 OK 🚫 0 Errors Does anyone know how I can reliably check the validity of Reddit links? This is probably more specific to what Reddit's servers are doing, but I wasn't sure where to ask about that so I figured I'd start here. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Sorry for the late response. Just double-checked in my browser. However, it does print
I am not aware of any browser detection on Reddit, however that doesn't mean it could not exist. |
Beta Was this translation helpful? Give feedback.
Yeah, I think this is something weird happening on Reddit's end. It only started happening about a month ago, and was working fine before then, so I'm guessing it's because Reddit changed something on their end.