question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Axios not starting request since 3.3.0

See original GitHub issue

Has 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 Capture d’écran_2019-05-20_10-28-39 Capture d’écran_2019-05-20_10-29-01

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:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
jennifer-shehanecommented, May 20, 2019

Thanks for opening! Will close as duplicate of https://github.com/cypress-io/cypress/issues/4253 to keep the discussion in one place.

0reactions
cypress-bot[bot]commented, May 23, 2019

Released in 3.3.1.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found