-
Notifications
You must be signed in to change notification settings - Fork 37
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
Timeout Error after 2 min of start of upload #43
Comments
How big are each of these files? You might want to run the upload in batches. This could just be the entire request just timing out if it's always cutting off after 2 minutes. |
@clineamb |
I would recommend running in batches and see if perhaps the amount is the issue. If that's the case, yes, it would be a fix we'd need to look into or make. My recommendation is by directory, and make sure your Mind if I see some code? |
I am passing complete dist folder to gulp src. In dist folder no of folder are only 5 but each folder has image files max upto 350.
|
Have you tried not setting |
Yes I also tried with not setting {buffer: false}. But in that case also timeout error is thrown. |
It seems that size of the file is not an issue as max size of file in project is 2MB, but number of files is very large. |
This might simply be AWS-SDK restrictions on upload. I'll see if I can find a place to add additional logging and do some research. Is your timeout error giving you any additional details aside from just timing out? |
@clineamb I have already attached the traces of the error in first comment. Its basically from the AWS-SDK |
@MandeepKalkhanda while this is for Lambda, it seems this is a node version error. Make sure you upgrade your node to the latest version that can work with the AWS-SDK https://aws.amazon.com/premiumsupport/knowledge-center/write-eproto-error/ |
Maybe I should open a new issue, but I'm experiencing the same issue with the same conditions: timeout at 2 minutes (not any particular big file), originally caused on aws-sdk. However, with a different stack trace:
|
I have same issue as @ShadowManu |
This might have to do with permissions to buckets or can't connect. I'll have to dig into it further. |
It normally happens when I'm uploading too many files at the same time (like an initial -vs updated- upload of a folder). So I would discard permissions. However, there may be an issue of too many concurrent uploads at the same time (and maybe can't connect). |
I've found solution for my problem. Need to just set right timeout in aws-sdk settings. Something like this:
|
@ShadowManu -- I'll do a deeper dive into the SDK and check that out. I'll have to see if I can add a # of concurrent files being uploaded as an option, w/ any SDK limitations as a max. For now, can you also try @norkfy's solution above, and see if that works for you? |
I've been manually limiting which files gets uploaded so they are under the 2 minutes timeout. But I can check @norkfy's comment later today. |
Hi,
I am getting exception from AWS-SDK after 2 minute of start of upload. Uploading 1K+ files to S3.
This is occurring every time if the upload process take more then 2 minutes.
Below is the traces of the exception.
...\node_modules\aws-sdk\lib\req
uest.js:31
throw err;
^
Error: S3 headObject Error: Error: write EPROTO
at Object.exports._errnoException (util.js:870:11)
at exports._exceptionWithHostPort (util.js:893:20)
at WriteWrap.afterWrite (net.js:763:14)
at Request.callListeners (...\node_modules\aws-sdk\lib\sequential_executor.js:108:43)
at Request.emit (...\node_mo
dules\aws-sdk\lib\sequential_executor.js:78:10)
at Request.emit (...\node_mo
dules\aws-sdk\lib\request.js:668:14)
at Request.transition (...\n
ode_modules\aws-sdk\lib\request.js:22:10)
at AcceptorStateMachine.runTo (...\node_modules\aws-sdk\lib\state_machine.js:14:12)
at ...\node_modules\aws-sdk
lib\state_machine.js:26:10
at Request. (...
node_modules\aws-sdk\lib\request.js:38:9)
at Request. (...
node_modules\aws-sdk\lib\request.js:670:12)
at Request.callListeners (...\node_modules\aws-sdk\lib\sequential_executor.js:116:18)
at Request.emit (...\node_mo
dules\aws-sdk\lib\sequential_executor.js:78:10)
at Request.emit (...\node_mo
dules\aws-sdk\lib\request.js:668:14)
at Request.transition (...\n
ode_modules\aws-sdk\lib\request.js:22:10)
at AcceptorStateMachine.runTo (..\node_modules\aws-sdk\lib\state_machine.js:14:12)
at ...\node_modules\aws-sdk
lib\state_machine.js:26:10
at Request. (...
node_modules\aws-sdk\lib\request.js:38:9)
at Request. (...
node_modules\aws-sdk\lib\request.js:670:12)
The text was updated successfully, but these errors were encountered: