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

Error Code 429 - too many requests #1715

Open
MatinF opened this issue Apr 24, 2024 · 2 comments
Open

Error Code 429 - too many requests #1715

MatinF opened this issue Apr 24, 2024 · 2 comments

Comments

@MatinF
Copy link

MatinF commented Apr 24, 2024

I'm using below function in an automated w3c validator script. It runs daily across ~200 URLs:

def validate_url(url):
    import requests, sys

    print("test url: ", url)
    validator_url = "https://validator.w3.org/nu/"
    params = {"doc": url, "out": "json"}
    r = requests.get(validator_url, params=params)

    if r.status_code != 429:
        results = r.json()["messages"]
    else:
        print("WARNING: Too many requests - exiting script")
        sys.exit()

    return results

This has worked with no issues for years, but last week it started failing with the error code 429, i.e. too many requests.

Has anyone else experienced something similar?

@bnadlerjr
Copy link

I'm having the same issue. My script doesn't run as often so I only first noticed it yesterday.

bnadlerjr added a commit to bnadlerjr/bnadlerjr.github.com that referenced this issue May 27, 2024
Started getting unexplained 429 errors. Found this GitHub issue[1], but
no comments on it yet. Disabling the check until I can figure out what's
going on.

[1]: validator/validator#1715
@LucasLarson
Copy link

LucasLarson commented May 27, 2024

It happens even if you use the old interface on validator.w3.org to validate this SVG.

It returns a similar 429-error message I have never seen before:

Error External Checker not available
Checking the Document Type of this document requires the help of an external tool which was either not enabled in this validator, or is currently unavailable. Check in the validator's system configuration that HTML5 Validator is enabled and functional.
The error encountered was: 429 Too Many Requests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants