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

Package imports fails #501

Open
thibaudcolas opened this issue Feb 19, 2025 · 1 comment
Open

Package imports fails #501

thibaudcolas opened this issue Feb 19, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@thibaudcolas
Copy link
Member

There’s a JSONDecodeError when triggering the import from: https://wagtail.org/admin/get-djangopackages/. Request to: https://djangopackages.org/api/v4/grids/?q=wagtail

Code:

def process(url="https://djangopackages.org/api/v4/grids/?q=wagtail"):
grid_data = requests.get(url).json() # noqa: S113
for item in grid_data.get("results", []):

@thibaudcolas thibaudcolas added the bug Something isn't working label Feb 19, 2025
@Stormheg
Copy link
Member

Caused by Cloudflare anti-bot protection on that url when accessed by the staging and production Heroku dynos.

Filed this as an issue with djangopackages: djangopackages/djangopackages#1352

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants