Skip to content

Expand retry on common connection errors #87

@carterm

Description

@carterm

fetch-retry is doing a great job of resubmitting requests. Let's check to make sure other common connection errors are retried.

  • 502 - Bad Gateway
  • 504 - Target not responding

Also important to check for response codes before reading the JSON body...

FetchError: invalid json response body at https://dev-cagov-dcc.pantheonsite.io/wp-json/wp/v2/media?per_page=1&orderby=modified&order=desc&_fields=modified&cachebust=0.9978039968360015 reason: Unexpected token W in JSON at position 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions