簡體   English   中英

操作失敗后,TransferClient不返回錯誤消息

[英]TransferClient returns no error message after failed operation

我一直在嘗試通過SDK中的測試通過官方SDK在C ++中使用TransferClient。 但是,當我運行以下代碼時,沒有得到人類可讀的字符串。 有想法嗎?

TransferClientConfiguration transferConfig;
transferConfig.m_uploadBufferCount = 20;

static const char* ALLOCATION_TAG = "TransferTests";
ClientConfiguration config;    
std::shared_ptr<S3Client> m_s3Client = Aws::MakeShared<S3Client>(ALLOCATION_TAG, config, false);
std::shared_ptr<TransferClient> m_transferClient = Aws::MakeShared<TransferClient>(ALLOCATION_TAG, m_s3Client, transferConfig);
std::string s3path = "akey";
std::shared_ptr<UploadFileRequest> requestPtr = m_transferClient->UploadFile(filepath.string(), "testbucket", s3path.c_str(), "", false, true);
requestPtr->WaitUntilDone();
if (!requestPtr->CompletedSuccessfully())
{
    // requestPtr->GetFailure() returns a blank string here??
}

找出問題! 事實證明存儲桶位於us-west-1中,無論出於何種原因,具有默認客戶端選項的傳輸客戶端均不起作用。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM