- 最新
- 最多得票
- 最多評論
Hi,
Greetings for the day!
Please note that the error "WebException: The request was aborted: The request was canceled" might be because of below reasons:
Timeout (100 sec by default)
Executing async method and not awaiting it
Executing async void method
Running job in different task/thread and not waiting it to complete
Please refer the below third party articles: [+] https://stackoverflow.com/questions/52647818/a-task-was-canceled-exception-when-trying-to-upload-file-to-s3-bucket [+] https://stackoverflow.com/questions/55786738/task-was-cancelled-exception-when-uploading-file-to-s3-bucket-using-aws-net-sdk [+] https://stackoverflow.com/questions/13903150/transferring-large-files-to-amazon-s3-using-c-sharp-request-aborted-and-cancel [+] https://stackoverflow.com/questions/21548604/the-request-was-aborted-the-request-was-canceled-no-solution-works
NOTE : Kindly note that the documents shared here are third party documentation not endorsed by AWS.
If you have any further queries, please feel free to reach out to AWS Support along with your specific error and details, and we would be happy to assist you further.
[+] Creating support cases and case management - https://docs.aws.amazon.com/awssupport/latest/user/case-management.html
相關內容
- 已提問 6 個月前
- AWS 官方已更新 1 年前
Hello, I have a question on your third suggestion "Executing async void method". We are uploading and downloading using async Task signature because ITransferUtility is also using async Task signature and not returning a status or any response back so the entire chain is using async task. Our tasks are awaited indeed, what we haven't done so far is to extend the timeout, but wouldn't the exception be different in case of timeout?