Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In chrome incognito mode, download large files (>3GB) with axios always failed #6382

Open
yuanli186 opened this issue May 6, 2024 · 0 comments

Comments

@yuanli186
Copy link

yuanli186 commented May 6, 2024

Describe the bug

os: mac or ubuntu
In chrome incognito mode, run below code to download large files always failed

To Reproduce

Open chrome in incognito, Try to download a big file by using axios

Code snippet

export function getArtifact(params: getArtifactParam) {
  return axios.get('/artifact', {
    responseType: 'blob',
    timeout: 60000000,
    onDownloadProgress: (evt) => {
      if (params.callback) {
        params.callback(evt, params.record);
      }
      // 进度条处理
      // console.log(evt);
    },
    headers: {
      accept: 'application/octet-stream',
    },
    maxContentLength: Infinity,
    maxBodyLength: Infinity,
    params: params.paramsApi,
    cancelToken: params.cancelToken,
  });
}

Expected behavior

No response

Axios Version

0.24.0

Adapter Version

No response

Browser

chrome

Browser Version

No response

Node.js Version

No response

OS

No response

Additional Library Versions

No response

Additional context/Screenshots

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant