{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-php-zf2/issues/32","repository_url":"https://api.github.com/repos/aws/aws-sdk-php-zf2","labels_url":"https://api.github.com/repos/aws/aws-sdk-php-zf2/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-php-zf2/issues/32/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-php-zf2/issues/32/events","html_url":"https://github.com/aws/aws-sdk-php-zf2/issues/32","id":128140905,"number":32,"title":"Generating incorrect upload URL","user":{"login":"dkaswan","id":1167089,"avatar_url":"https://avatars.githubusercontent.com/u/1167089?v=3","gravatar_id":"","url":"https://api.github.com/users/dkaswan","html_url":"https://github.com/dkaswan","followers_url":"https://api.github.com/users/dkaswan/followers","following_url":"https://api.github.com/users/dkaswan/following{/other_user}","gists_url":"https://api.github.com/users/dkaswan/gists{/gist_id}","starred_url":"https://api.github.com/users/dkaswan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkaswan/subscriptions","organizations_url":"https://api.github.com/users/dkaswan/orgs","repos_url":"https://api.github.com/users/dkaswan/repos","events_url":"https://api.github.com/users/dkaswan/events{/privacy}","received_events_url":"https://api.github.com/users/dkaswan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-22T11:50:22Z","updated_at":"2016-02-03T22:37:48Z","closed_at":"2016-02-03T22:37:48Z","body":"Upgraded to version 2 and updated config and code accordingly. Now it is generating incorrect URL (note the double dots after s3(..) in error message)\r\n\r\n### Exception details:\r\nAws\\S3\\Exception\\S3Exception\r\n#### File:\r\n\\MyProject\\vendor\\aws\\aws-sdk-php\\src\\WrappedHttpHandler.php:159\r\n#### Message:\r\n**Error executing \"PutObject\" on \"https://s3..amazonaws.com/my-bucket/files/xxxxxx.txt\"; AWS HTTP error: cURL error 6: Could not resolve host: s3..amazonaws.com (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)**\r\n#### Stack trace:\r\n#0 \\MyProject\\vendor\\aws\\aws-sdk-php\\src\\WrappedHttpHandler.php(77): Aws\\WrappedHttpHandler->parseError(Array, Object(GuzzleHttp\\Psr7\\Request), Object(Aws\\Command))\r\n#1 \\MyProject\\vendor\\guzzlehttp\\promises\\src\\Promise.php(199): Aws\\WrappedHttpHandler->Aws\\{closure}(Array)\r\n#2 \\MyProject\\vendor\\guzzlehttp\\promises\\src\\Promise.php(170): GuzzleHttp\\Promise\\Promise::callHandler(2, Array, Array)\r\n#3 \\MyProject\\vendor\\guzzlehttp\\promises\\src\\RejectedPromise.php(40): GuzzleHttp\\Promise\\Promise::GuzzleHttp\\Promise\\{closure}(Array)\r\n#4 \\MyProject\\vendor\\guzzlehttp\\promises\\src\\TaskQueue.php(60): GuzzleHttp\\Promise\\RejectedPromise::GuzzleHttp\\Promise\\{closure}()\r\n#5 \\MyProject\\vendor\\guzzlehttp\\guzzle\\src\\Handler\\CurlMultiHandler.php(96): GuzzleHttp\\Promise\\TaskQueue->run()\r\n#6 \\MyProject\\vendor\\guzzlehttp\\guzzle\\src\\Handler\\CurlMultiHandler.php(123): GuzzleHttp\\Handler\\CurlMultiHandler->tick()\r\n#7 \\MyProject\\vendor\\guzzlehttp\\promises\\src\\Promise.php(240): GuzzleHttp\\Handler\\CurlMultiHandler->execute(true)\r\n#8 \\MyProject\\vendor\\guzzlehttp\\promises\\src\\Promise.php(217): GuzzleHttp\\Promise\\Promise->invokeWaitFn()\r\n#9 \\MyProject\\vendor\\guzzlehttp\\promises\\src\\Promise.php(261): GuzzleHttp\\Promise\\Promise->waitIfPending()\r\n#10 \\MyProject\\vendor\\guzzlehttp\\promises\\src\\Promise.php(219): GuzzleHttp\\Promise\\Promise->invokeWaitList()\r\n#11 \\MyProject\\vendor\\guzzlehttp\\promises\\src\\Promise.php(261): GuzzleHttp\\Promise\\Promise->waitIfPending()\r\n#12 \\MyProject\\vendor\\guzzlehttp\\promises\\src\\Promise.php(219): GuzzleHttp\\Promise\\Promise->invokeWaitList()\r\n#13 \\MyProject\\vendor\\guzzlehttp\\promises\\src\\Promise.php(62): GuzzleHttp\\Promise\\Promise->waitIfPending()\r\n#14 \\MyProject\\vendor\\aws\\aws-sdk-php\\src\\AwsClient.php(202): GuzzleHttp\\Promise\\Promise->wait()\r\n#15 \\MyProject\\vendor\\aws\\aws-sdk-php\\src\\AwsClient.php(167): Aws\\AwsClient->execute(Object(Aws\\Command))\r\n#16 \\MyProject\\module\\Application\\src\\Application\\Model\\Mymodule.php(377): Aws\\AwsClient->__call('putObject', Array)\r\n#17 \\MyProject\\module\\Mymodule\\src\\Mymodule\\Controller\\MymoduleController.php(20): Application\\Model\\Mymodule->uploadToS3('files/x...')\r\n#18 \\MyProject\\vendor\\zendframework\\zend-mvc\\src\\Controller\\AbstractActionController.php(82): Mymodule\\Controller\\MymoduleController->indexAction()\r\n#19 [internal function]: Zend\\Mvc\\Controller\\AbstractActionController->onDispatch(Object(Zend\\Mvc\\MvcEvent))\r\n#20 \\MyProject\\vendor\\zendframework\\zend-eventmanager\\src\\EventManager.php(444): call_user_func(Array, Object(Zend\\Mvc\\MvcEvent))\r\n#21 \\MyProject\\vendor\\zendframework\\zend-eventmanager\\src\\EventManager.php(205): Zend\\EventManager\\EventManager->triggerListeners('dispatch', Object(Zend\\Mvc\\MvcEvent), Object(Closure))\r\n#22 \\MyProject\\vendor\\zendframework\\zend-mvc\\src\\Controller\\AbstractController.php(118): Zend\\EventManager\\EventManager->trigger('dispatch', Object(Zend\\Mvc\\MvcEvent), Object(Closure))\r\n#23 \\MyProject\\vendor\\zendframework\\zend-mvc\\src\\DispatchListener.php(93): Zend\\Mvc\\Controller\\AbstractController->dispatch(Object(Zend\\Http\\PhpEnvironment\\Request), Object(Zend\\Http\\PhpEnvironment\\Response))\r\n#24 [internal function]: Zend\\Mvc\\DispatchListener->onDispatch(Object(Zend\\Mvc\\MvcEvent))\r\n#25 \\MyProject\\vendor\\zendframework\\zend-eventmanager\\src\\EventManager.php(444): call_user_func(Array, Object(Zend\\Mvc\\MvcEvent))\r\n#26 \\MyProject\\vendor\\zendframework\\zend-eventmanager\\src\\EventManager.php(205): Zend\\EventManager\\EventManager->triggerListeners('dispatch', Object(Zend\\Mvc\\MvcEvent), Object(Closure))\r\n#27 \\MyProject\\vendor\\zendframework\\zend-mvc\\src\\Application.php(314): Zend\\EventManager\\EventManager->trigger('dispatch', Object(Zend\\Mvc\\MvcEvent), Object(Closure))\r\n#28 \\MyProject\\public\\index.php(96): Zend\\Mvc\\Application->run()\r\n#29 {main}"},"comment":{"url":"https://api.github.com/repos/aws/aws-sdk-php-zf2/issues/comments/179507233","html_url":"https://github.com/aws/aws-sdk-php-zf2/issues/32#issuecomment-179507233","issue_url":"https://api.github.com/repos/aws/aws-sdk-php-zf2/issues/32","id":179507233,"user":{"login":"jeskew","id":705500,"avatar_url":"https://avatars.githubusercontent.com/u/705500?v=3","gravatar_id":"","url":"https://api.github.com/users/jeskew","html_url":"https://github.com/jeskew","followers_url":"https://api.github.com/users/jeskew/followers","following_url":"https://api.github.com/users/jeskew/following{/other_user}","gists_url":"https://api.github.com/users/jeskew/gists{/gist_id}","starred_url":"https://api.github.com/users/jeskew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeskew/subscriptions","organizations_url":"https://api.github.com/users/jeskew/orgs","repos_url":"https://api.github.com/users/jeskew/repos","events_url":"https://api.github.com/users/jeskew/events{/privacy}","received_events_url":"https://api.github.com/users/jeskew/received_events","type":"User","site_admin":false},"created_at":"2016-02-03T22:37:48Z","updated_at":"2016-02-03T22:37:48Z","body":"Please feel free to reopen if you have any questions or concerns."}}