Cypress: Timeout on big request response (~ 15 mb)

Created on 10 Feb 2020  路  3Comments  路  Source: cypress-io/cypress

Im not able to complete GET request because of timeout issue. Even increasing the responseTimeout isn't work. It was checked in two different environments, always with big response form the API (circa~15 mb). At the same time in POSTMAN the request is completed in 45 - 50 seconds.

Steps to reproduce the issue:

  1. Generate request url using heroku: https://github.com/sterenczak-marek/go-long-request
  2. Use this request url and send GET request via Cypress (code is provided below)
  3. Timeout issue is visible
    Zrzut ekranu 2020-02-10 o 08 04 23

the code:

describe('test', () => {
  it('get big response data', () => {
        cy.request({
            url: 'https://warm-atoll-78694.herokuapp.com/',
        })
    }); 
});

you can check it on provided url, but i'm not sure how long it will be available
Version
cypress 4.0

It looks like Cypress is not able to handle big response from the API.

needs investigating network regression v3.3.2

Most helpful comment

I was able to get the response within 43 seconds outside of Cypress. Size of response is 13.7 MB.

Cypress always times out on the request. This used to pass, so this is a regression in 3.3.2. It's not very clear from the changelog what may have caused this https://on.cypress.io/changelog#3-3-2

it('test', () => {
  cy.request({
    url: 'https://warm-atoll-78694.herokuapp.com/',
    timeout: 60000
  })
})

3.3.1

Screen Shot 2020-02-10 at 3 40 50 PM

3.3.2

Screen Shot 2020-02-10 at 3 26 32 PM

Workaround

Downgrade to Cypress 3.3.2.

All 3 comments

I was able to get the response within 43 seconds outside of Cypress. Size of response is 13.7 MB.

Cypress always times out on the request. This used to pass, so this is a regression in 3.3.2. It's not very clear from the changelog what may have caused this https://on.cypress.io/changelog#3-3-2

it('test', () => {
  cy.request({
    url: 'https://warm-atoll-78694.herokuapp.com/',
    timeout: 60000
  })
})

3.3.1

Screen Shot 2020-02-10 at 3 40 50 PM

3.3.2

Screen Shot 2020-02-10 at 3 26 32 PM

Workaround

Downgrade to Cypress 3.3.2.

any updates on this topic? we saw something similar on 5.3.0

We have the same problem after downgrade to 3.3.1 our api tests works but
we are shortened by new cypress features :/

Was this page helpful?
0 / 5 - 0 ratings