2016-08-04 8 views
0

SDKのテストに続いて公式SDKからTransferClientを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?? 
} 

答えて

0

問題を解消しました!バケツがus-west-1にあり、何らかの理由でバケットがデフォルトのクライアントオプションを持つ転送クライアントが動作しないことが分かります。

関連する問題