https://cypress.io logo
Hi lovely peeps, I have a trouble with fetching re...
# general-chat
i
Hi lovely peeps, I have a trouble with fetching response data from my call. When I run my Cypress test, on response I see an empty array. Just after that when I try with the exact same request on Postman I can see coming array within data. Here is my request: const option = { method: 'GET', url:
${baseUrl}/${client_id}/folders/${folder_id}
, headers: { Authorization: 'Bearer ' + Cypress.env('access_token') } } cy.request(option).then((resp) => { expect(resp.status).to.eq(200) const documentData = resp.body.data expect(documentData.length).to.not.eq(0) }) Do you have something in your mind that cause this problem? My Cypress version is ^10.7.0.