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

ESOCKETTIMEDOUT error while uploading large file in azure file storage #401

Closed
AbhishekKaura25 opened this issue Jan 21, 2018 · 2 comments
Closed

Comments

@AbhishekKaura25
Copy link

AbhishekKaura25 commented Jan 21, 2018

Hi,

We are getting issue while uploading a large file into azure file storage. This snippet is working fine till yesterday and this call is only started failing from today onwards. Logs is giving below error.

{"code":"ESOCKETTIMEDOUT","connect":false}

Code snippet:
fileService.createFileFromStream(fileShare, directory, fileName, fileStream, fileByte.length, function(error, result, response) {
if (!error) {
console.log('File is uploaded to file storage successfully');
res.status(201).send({
success: true,
msg: 'File is uploaded to file storage successfully'
});
} else {
console.log('Error occurred while uploading the file in file storage' + JSON.stringify(error));
res.status(400).send({
success: false,
msg: 'Error occurred while uploading the file in file storage',
error: JSON.stringify(error)
});
}
});

@XiaoningLiu
Copy link
Member

Hi @AbhishekKaura25

If there is no code change on your side, I think there maybe some issues on the network. The socket timeout usually happens when network is poor, or network in heavy usage.

Suggestions on the client library side is to add retry filter, which may help.

fileService.withFilter(new AzureStorage.ExponentialRetryPolicyFilter());

@vinjiang
Copy link
Member

vinjiang commented Mar 9, 2018

Feel free to let us know if further assistance required.

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

3 participants