Handle "429 Too Many Requests" from D.o API

Created on 16 August 2025, about 1 month ago

Problem / Motivation

GuzzleHttp\Exception\ClientException: Client error: `GET https://www.drupal.org/api-d7/node.json?type=project_release&field_release_project=3060&limit=100&sort=created&direction=desc&page=0&field_release_version_major=7` resulted in a `429 Too Many Requests` response:
<html> <head> <title>Too Many Requests</title> </head> <body> <h1>Too Many Requests</h1> <p>Reached maximum requests lim (truncated...)

Also, `CoreVersionManagerTest::testGetWithCompatibility` should use a mock and not ping D.o directly

✨ Feature request
Status

Active

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mglaman WI, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @mglaman
  • πŸ‡ΊπŸ‡ΈUnited States mglaman WI, USA

    This specifically needs to be handled in \Drupal\simplytest_projects\CoreVersionManager::updateData

    Guzzle has \GuzzleHttp\RetryMiddleware has via \GuzzleHttp\Middleware::retry just need to register as http_client_middleware

Production build 0.71.5 2024