Skip to content

uploading file to s3 using aws-sdk-cpp-transfer do nothing #96

@chemidy

Description

@chemidy

I try to upload a file to s3 with transfer, but nothing happens and trace log is empty.
Any Idea ?
`

Aws::Utils::Logging::InitializeAWSLogging(Aws::MakeSharedAws::Utils::Logging::DefaultLogSystem("Internal_Logger", Aws::Utils::Logging::LogLevel::Trace, "aws_sdk_"));

ClientConfiguration config;
config.scheme = Scheme::HTTPS;
config.connectTimeoutMs = 30000;
config.requestTimeoutMs = 30000;

TransferClientConfiguration transferConfig;
transferConfig.m_uploadBufferCount = 20;

std::shared_ptr<S3Client> m_s3Client = Aws::MakeShared<S3Client>("Upload", config);
std::shared_ptr<TransferClient> m_transferClient = Aws::MakeShared<TransferClient>("Upload", m_s3Client, transferConfig);

std::shared_ptr<UploadFileRequest> requestPtr = m_transferClient->UploadFile("myFile.zip", "MyLiTTleBucket", "myFile.zip", "application/zip", false, false);


Aws::Utils::Logging::ShutdownAWSLogging();`

`
[TRACE] 2016-02-03 16:31:13 FileSystemUtils [139892860249920] Checking HOME for the home directory.

[DEBUG] 2016-02-03 16:31:13 FileSystemUtils [139892860249920] Environment value for variable HOME is /home/chemidy

[DEBUG] 2016-02-03 16:31:13 FileSystemUtils [139892860249920] Home directory is missing the final / appending one to normalize
[DEBUG] 2016-02-03 16:31:13 FileSystemUtils [139892860249920] Final Home Directory is /home/chemidy/

[INFO] 2016-02-03 16:31:13 ProfileConfigFileAWSCredentialsProvider [139892860249920] Setting provider to read credentials from /home/chemidy//.aws/credentials, for use with profile default.

[INFO] 2016-02-03 16:31:13 InstanceProfileCredentialsProvider [139892860249920] Creating Instance with default EC2MetadataClient and refresh rate 900000.

[INFO] 2016-02-03 16:31:13 EC2MetadataClient [139892860249920] Creating HttpClient with max connections 2 and scheme http

[INFO] 2016-02-03 16:31:13 CurlHandleContainer [139892860249920] Intializing CurlHandleContainer with size 2

[INFO] 2016-02-03 16:31:13 CurlHandleContainer [139892860249920] Initializing Curl library

[INFO] 2016-02-03 16:31:13 CurlHandleContainer [139892860249920] Intializing CurlHandleContainer with size 25
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions