-
Hi all. For the past week I have been investigating DIYgod/RSSHub#16032 (which is not created by me). This issue was about an user failing to fetch webpages from the BBC website with the error
with The following is attempts that I made. Mimicing the browserI can visit the BBC and any of its articles from my browser, so the headers were my first consideration. I copyed the Trying on different devicesI tried:
but all failed. Surprisingly, my phone works:
Trying other toolsI tried python I also visited https://npm.runkit.com/ which works, though it only offers up to v18. I know it's highly improbable that there's actually an issue with |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
They are doing some kind of user-agent sniffing, and they don't like ours. This will work: await fetch("https://www.bbc.com/news/articles/cw0ygnyxgnqo", { headers: { 'User-Agent': 'curl/8.4.0' } }) |
Beta Was this translation helpful? Give feedback.
They are doing some kind of user-agent sniffing, and they don't like ours. This will work: