Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blocked with 200 status code: "JavaScript is disabled in your browser." #17285

Open
pajod opened this issue Dec 16, 2024 · 3 comments
Open

blocked with 200 status code: "JavaScript is disabled in your browser." #17285

pajod opened this issue Dec 16, 2024 · 3 comments
Labels
cross browser bug 🐛 Issue specific to a particular browser or resolution security Security-related issues and pull requests

Comments

@pajod
Copy link

pajod commented Dec 16, 2024

Describe the bug
My bookmark for searching on pypi stopped working. For a GET request to https://pypi.org/search/?q=%s I get a cloudflare-esque virtual middle finger, despite the 200 status code.

Expected behavior

  • usually: a search result list (status 2xx)
  • possibly: a redirect to the single result (status 3xx)
  • failing either: an error page with a link to https://status.python.org/ (status 4xx)

To Reproduce

  • origin & rate does not appear to matter, problem even affects networks that did not send any requests this month
  • the page may or may not redirect, in a browser that complies with whatever fastly wants it to do (additional javascript, fetching which results in an empty 400 response)

My Platform

  • reproduced using curl 8.11.1 and Firefox 128.5.2esr

Additional context

Specific message depends on the outcome of some obfuscated javascript:

  • "Please enable JavaScript to proceed."
  • "Please enable cookies to continue."
  • "Oops, something went wrong."
  • "is verifying your browser..."
    Red cross Icon, Please enable JavaScript to proceed.
@pajod pajod added bug 🐛 requires triaging maintainers need to do initial inspection of issue labels Dec 16, 2024
@miketheman
Copy link
Member

Please see this thread that explains what changed and why. https://discuss.python.org/t/fastly-interfering-with-pypi-search/73597/6

@miketheman miketheman added security Security-related issues and pull requests cross browser bug 🐛 Issue specific to a particular browser or resolution and removed requires triaging maintainers need to do initial inspection of issue bug 🐛 labels Dec 16, 2024
@mwoehlke-kitware
Copy link

I had to unblock the fastly-insights.com domain, which is blocked by default by whatever security/privacy blacklists I have configured. I understand the need to protect the service, but maybe using a service that doesn't have a reputation as "harmful" would be a good idea...

@z1atk0
Copy link

z1atk0 commented Dec 18, 2024

Have been bitten by this today as well. 😒 I have a daily cron script to monitor a few projects for new releases on pypi.org, among others. It basically downloads, for example, https://pypi.org/project/PyQt5-sip/#files with wget, dumps the HTML with w3m -dump, diffs the dump against yesterday's dump, and then mails the result, if any, to me, together with the URL.

After some inital cursing 🤬 and head-scratching 🤔 I finally stumbled upon https://gist.github.com/hackerb9/d382e09683a52dcac492ebcdaf1b79af via https://superuser.com/questions/666167/how-do-i-use-firefox-cookies-with-wget, so I'll modify my script to export my current Firefox cookies, and feed those to wget.

Let's see how long this works before the cookies get stale, and I'll have to open a pypi.org tab via firefox --new-tab https://pypi.org/ in addition to that. 🙄

Just thought I'd post my solu^W work^W hackaround here to save future googlers the time and frustration of doing that by themselves. 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cross browser bug 🐛 Issue specific to a particular browser or resolution security Security-related issues and pull requests
Projects
None yet
Development

No branches or pull requests

4 participants