Axios not starting request since 3.3.0
See original GitHub issueHas anything changed that can impact this on 3.3.0? I checked the changelog, but cannot find anything related. I’m no expert though 😃
Changing browser (chromium, electron…) does not fix this.
Current behavior:
- On large files (it seems to be the pattern here), axios request does not even starts
Desired behavior:
- axios request starts as it used ot be
Steps to reproduce: (app code and test code)
Command is working fine on 3.2.0 All tests are passing and upload properly.
Cypress.Commands.add('uploadFile', (fileName, mimeType) => {
cy.fixture(fileName, 'base64')
.then(Cypress.Blob.base64StringToBlob)
.then(blob => {
const file = new File([blob], fileName, { type: mimeType })
const url = `${Cypress.env('baseUrl')}/remote.php/webdav/${fileName}`
return cy.window().then({ timeout: 10000 }, window => {
return axios.put(url, file, {
headers: {
requesttoken: window.OC.requestToken,
'Content-Type': mimeType
}
}).then(response => {
expect(response.status).to.eq(201)
cy.log(`Uploaded ${fileName}`, response.status)
})
})
})
})
Versions
3.2.0 Linux CI: Drone.io
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
React nothing executed after post with axios - Stack Overflow
I'm having trouble getting anything after an axios post to execute. The data posts to the backend as expected, but I can't get...
Read more >Making HTTP requests with Axios - CircleCI
Axios is a promise-based HTTP library that lets developers make requests to either their own or a third-party server to fetch data.
Read more >Getting Started With Axios
Make http requests from node.js; Supports the Promise API; Intercept request and response; Transform request and response data; Cancel requests ...
Read more >Understanding Axios POST requests - LogRocket Blog
To understand using the POST method, let's consider the following scenario: Take logging into Facebook, for example. When we first start using ...
Read more >axios - npm
Start using axios in your project by running `npm i axios`. ... Requests will default to GET if method is not specified.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for opening! Will close as duplicate of https://github.com/cypress-io/cypress/issues/4253 to keep the discussion in one place.
Released in
3.3.1
.