Skip to content

Fix unbroken checks for npmjs.com URLs hitting 403 #1090

Description

When queried npmjs.com URLs are queried from GitHub CI machines or from Microsoft's network (perhaps behind its proxies) fail with 403 Forbidden Request. Trying to add enough headers don't help too

$ curl -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" \
  -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8" \
  -H "Accept-Language: en-US,en;q=0.9" \
  -H "Accept-Encoding: gzip, deflate, br" \
  --compressed \
  -L \
  -I \
  https://www.npmjs.com/

HTTP/2 403

These URLs are deemed broken by unbroken, thereby leading to documentation fixing PRs getting blocked due to these false positives.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions