Skip to content

Client error when shop runs into Cloudflare queue #468

@ocastx

Description

@ocastx

What area is the issue related to?

Checkout Sheet Kit

What version of Checkout Sheet Kit are you using?

3.4.0

Reproducible sample code

No response

Steps to Reproduce

Use a shop that is currently rate limited by Cloudflare (sorry, not so easy to reproduce)

  1. Add random item to cart
  2. Without preloading, open checkout using .present()

Expected Behavior

Either checkout is opened without Cloudflare challenge, or user gets the option to solve challenge and proceed to checkout.

Actual Behavior

CSK returns clientError, most likely due to the HTTP code being 429 and the response being a Cloudflare challenge

case checkoutUnavailable(message: String, code: CheckoutUnavailable, recoverable: Bool)

Screenshots/Videos/Log output

No response

Storefront domain

redacted

This seems to be happening at the moment due to the ongoing Cloudflare outage: https://www.cloudflarestatus.com/ The issue persists, though only on specific stores that seem to have reached the rate limit.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions