Skip to content

Retry proxied requests when network level errors occur #898

Closed
@brian-mann

Description

@brian-mann
Member

Need to implement the same kind of retry logic as this lib:

https://github.com/FGRibreau/node-request-retry

['ECONNRESET', 'ENOTFOUND', 'ESOCKETTIMEDOUT', 'ETIMEDOUT', 'ECONNREFUSED', 'EHOSTUNREACH', 'EPIPE', 'EAI_AGAIN']

TODO: research EPIPE we may not be able to retry from that.

Activity

brian-mann

brian-mann commented on Dec 5, 2017

@brian-mann
MemberAuthor

cy.visit, cy.request, and transparently proxied requests should account for this.

IDEA: possibly expose this as global configuration to control the backoff algorithm? Even disable altogether?

retryProxiedRequests: true

cypress-bot

cypress-bot commented on May 15, 2019

@cypress-bot
Contributor

The code for this is done in cypress-io/cypress#4015, but has yet to be released.
We'll update this issue and reference the changelog when it's released.

cypress-bot

cypress-bot commented on May 17, 2019

@cypress-bot
Contributor

Released in 3.3.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: enhancementRequested enhancement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @brian-mann@jennifer-shehane

      Issue actions

        Retry proxied requests when network level errors occur · Issue #898 · cypress-io/cypress