admin/config/services/cloudflare Slow to Load

Created on 7 March 2023, almost 2 years ago
Updated 13 September 2024, 3 months ago

Problem/Motivation

Settings page of the module crashes when there are more than 20 zones available for selection.

Steps to reproduce 1.x

After upgrading to 8.x.-1.0-beta3 or 2.x and trying to go to the settings page/or trying to setup the module first time

    Unable to connect to CloudFlare in order to validate credentials. Please try again later. Error message: Client error: `GET https://api.cloudflare.com/client/v4/zones?page=1&per_page=20&match=all` resulted in a `429 Too Many Requests` response: {"success":false,"errors":[{"code":10100,"message":"More than 1200 requests per 300 seconds reached. Please wait and con (truncated...)
    Unable to connect to CloudFlare in order to validate credentials. Please try again later. Error message: Client error: `GET https://api.cloudflare.com/client/v4/zones?page=0&per_page=20&match=all` resulted in a `429 Too Many Requests` response: {"success":false,"errors":[{"code":10100,"message":"More than 1200 requests per 300 seconds reached. Please wait and con (truncated...)
  • Upgrade module to 8.x.-1.0-beta3
  • Navigate to admin/config/services/cloudflare
  • Page times out
  • Reload page see error at the top.

Steps to reproduce 2.x

On initial setup - try to press Next after providing credentials and see the page crash
On existing setup - visit the module settings page

Proposed resolution

Fix the code

Remaining tasks

Test

πŸ› Bug report
Status

Needs work

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States johnpicozzi Providence, RI

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024