{"action":"created","issue":{"url":"https://api.github.com/repos/grails-aws/grails-aws/issues/57","labels_url":"https://api.github.com/repos/grails-aws/grails-aws/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/grails-aws/grails-aws/issues/57/comments","events_url":"https://api.github.com/repos/grails-aws/grails-aws/issues/57/events","html_url":"https://github.com/grails-aws/grails-aws/issues/57","id":114041972,"number":57,"title":"authorization mechanism invalid /AWS4-HMAC-SHA256","user":{"login":"Smithfields","id":2913543,"avatar_url":"https://avatars.githubusercontent.com/u/2913543?v=3","gravatar_id":"","url":"https://api.github.com/users/Smithfields","html_url":"https://github.com/Smithfields","followers_url":"https://api.github.com/users/Smithfields/followers","following_url":"https://api.github.com/users/Smithfields/following{/other_user}","gists_url":"https://api.github.com/users/Smithfields/gists{/gist_id}","starred_url":"https://api.github.com/users/Smithfields/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Smithfields/subscriptions","organizations_url":"https://api.github.com/users/Smithfields/orgs","repos_url":"https://api.github.com/users/Smithfields/repos","events_url":"https://api.github.com/users/Smithfields/events{/privacy}","received_events_url":"https://api.github.com/users/Smithfields/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"j4y","id":36337,"avatar_url":"https://avatars.githubusercontent.com/u/36337?v=3","gravatar_id":"","url":"https://api.github.com/users/j4y","html_url":"https://github.com/j4y","followers_url":"https://api.github.com/users/j4y/followers","following_url":"https://api.github.com/users/j4y/following{/other_user}","gists_url":"https://api.github.com/users/j4y/gists{/gist_id}","starred_url":"https://api.github.com/users/j4y/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j4y/subscriptions","organizations_url":"https://api.github.com/users/j4y/orgs","repos_url":"https://api.github.com/users/j4y/repos","events_url":"https://api.github.com/users/j4y/events{/privacy}","received_events_url":"https://api.github.com/users/j4y/received_events","type":"User","site_admin":false},"milestone":null,"comments":13,"created_at":"2015-10-29T12:48:37Z","updated_at":"2015-11-28T08:46:01Z","closed_at":null,"body":"Hello, it's the first time I'm using the plugin and I'm having the following error:\r\n```xml \r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?><Error><Code>InvalidRequest</Code><Message>The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256.</Message>\r\n```\r\nThanks in advance for your help.\r\n\r\nconfig.groovy : \r\n```javascript\r\n    plugin{\r\n        aws {\r\n            credentials {\r\n                accessKey = \"xxxxxxx\"\r\n                secretKey = \"xxxxxxxxxxxxxxxxxxxxx\"\r\n            }\r\n            s3 {\r\n                bucket = \"deysmnwarehouse\"\r\n                bucketLocation = \"Frankfurt\"//eu-central-1\r\n                acl = \"public\"\r\n\r\n                rrs = true\r\n            }\r\n        }\r\n```\r\nBootStrap.groovy:        \r\n```javascript\r\n    new File(fileStr).s3upload {\r\n            path \"userupload\"\r\n        }\r\n```\r\nstacktrace:\r\n\r\n```java \r\ncontext.GrailsContextLoaderListener Error initializing the application: S3 Error Message.\r\norg.jets3t.service.S3ServiceException: S3 Error Message. -- ResponseCode: 400, ResponseStatus: Bad Request, XML Error Message: <?xml version=\"1.0\" encoding=\"UTF-8\"?><Error><Code>InvalidRequest</Code><Message>The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256.</Message><RequestId>1FE3EC356D323A26</RequestId><HostId>xxxxxxxxxxxxxxxxxxxxx=</HostId></Error>\r\n\tat org.jets3t.service.S3Service.putObject(S3Service.java:2267)\r\n\tat grails.plugin.aws.s3.S3FileUpload.fileUpload(S3FileUpload.groovy:110)\r\n\tat grails.plugin.aws.util.MetaClassInjector$_injectS3UploadMethods_closure2.doCall(MetaClassInjector.groovy:42)\r\n\tat BootStrap$_closure1.doCall(BootStrap.groovy:275)\r\n\tat grails.util.Environment.evaluateEnvironmentSpecificBlock(Environment.java:327)\r\n\tat grails.util.Environment.executeForEnvironment(Environment.java:320)\r\n\tat grails.util.Environment.executeForCurrentEnvironment(Environment.java:296)\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n```\r\n(EDITED: now human readable using markdown)"},"comment":{"url":"https://api.github.com/repos/grails-aws/grails-aws/issues/comments/160264911","html_url":"https://github.com/grails-aws/grails-aws/issues/57#issuecomment-160264911","issue_url":"https://api.github.com/repos/grails-aws/grails-aws/issues/57","id":160264911,"user":{"login":"ssxenon01","id":232417,"avatar_url":"https://avatars.githubusercontent.com/u/232417?v=3","gravatar_id":"","url":"https://api.github.com/users/ssxenon01","html_url":"https://github.com/ssxenon01","followers_url":"https://api.github.com/users/ssxenon01/followers","following_url":"https://api.github.com/users/ssxenon01/following{/other_user}","gists_url":"https://api.github.com/users/ssxenon01/gists{/gist_id}","starred_url":"https://api.github.com/users/ssxenon01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssxenon01/subscriptions","organizations_url":"https://api.github.com/users/ssxenon01/orgs","repos_url":"https://api.github.com/users/ssxenon01/repos","events_url":"https://api.github.com/users/ssxenon01/events{/privacy}","received_events_url":"https://api.github.com/users/ssxenon01/received_events","type":"User","site_admin":false},"created_at":"2015-11-28T08:46:01Z","updated_at":"2015-11-28T08:46:01Z","body":"Just found out that jets3t not supperted v4 requests. V4 support added since v.0.9.3.\r\nso quick fix could be adding following to your dependencies:\r\n```compile 'net.java.dev.jets3t:jets3t:0.9.4'```\r\nand excluding jets3t from your plugin:\r\n```runtime(':aws:1.9.13.4'){\r\n    exclude 'jets3t'\r\n}```"}}