|
Hello. I had build the aws-sdk-cpp in macOS and tried to upload a 1mb.txt file to my personal S3 using transfer manager. The file did successfully upload to my S3. However, during assertion in the code, i am facing the uploadHandle->GetBytesTotalSize() is less than uploadHandle->GetBytesTransferred(). Below are my logs. Please advice... |
Replies: 2 comments 7 replies
|
the main problem i see is that SSL connections are failing on several of your requests So it would appear that your cert is self signed. This is likely a issue with your enviornment. So following this stack overflow i would suggest addressing the issue by setting up a valid ssl cert. Or rather that is what i am gathering from your logs. |
|
Thanks alot. Your advice is definitely helpful. Maybe you can update the examples too : https://github.com/awsdocs/aws-doc-sdk-examples/blob/main/cpp/example_code/transfer-manager/transferOnStream.cpp One last question, on what condition does it use the different checksum algo ? Sometimes I see crc32 in the logs. Sometimes I see crc64navne |
ah sorry, this is correct, it is due to the chunked encoding of the body. so the amount of bytes transferred should be the file size + size of chunked headers and trailer. so thae assertion that the uploaded file bytes == file size is no longer valid. "uploaded byes" will refer to the actual byte stream including the headers. so if we update the assertion to something like