{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-go/issues/378","repository_url":"https://api.github.com/repos/aws/aws-sdk-go","labels_url":"https://api.github.com/repos/aws/aws-sdk-go/issues/378/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-go/issues/378/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-go/issues/378/events","html_url":"https://github.com/aws/aws-sdk-go/issues/378","id":105479819,"number":378,"title":"CreateUser return ErrorResponse instead of Error","user":{"login":"yaso195","id":12282394,"avatar_url":"https://avatars.githubusercontent.com/u/12282394?v=3","gravatar_id":"","url":"https://api.github.com/users/yaso195","html_url":"https://github.com/yaso195","followers_url":"https://api.github.com/users/yaso195/followers","following_url":"https://api.github.com/users/yaso195/following{/other_user}","gists_url":"https://api.github.com/users/yaso195/gists{/gist_id}","starred_url":"https://api.github.com/users/yaso195/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaso195/subscriptions","organizations_url":"https://api.github.com/users/yaso195/orgs","repos_url":"https://api.github.com/users/yaso195/repos","events_url":"https://api.github.com/users/yaso195/events{/privacy}","received_events_url":"https://api.github.com/users/yaso195/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aws/aws-sdk-go/labels/Feedback%20Requested","name":"Feedback Requested","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2015-09-08T22:11:58Z","updated_at":"2016-08-23T00:27:47Z","closed_at":"2015-10-21T22:09:30Z","body":"When I try to run \r\n\r\n\t\t```params := &iam.CreateUserInput{\r\n\t\t\tUserName: aws.String(\"temp_user\"),\r\n\t\t\tPath:     aws.String(\"/\"),\r\n\t\t}\r\n\r\n\t\tif iamres, err := iamcli.CreateUser(params); err != nil {\r\n\t\t\tfmt.Println(err)\r\n\t\t} else {\r\n\t\t\tfmt.Println(iamres)\r\n\t\t}```\r\n\r\nI am getting the following error, even though my iamcli is configured correctly. \r\n``` SerializationError: failed to decode query XML error response\r\ncaused by: expected element type <ErrorResponse> but have <Error>```"},"comment":{"url":"https://api.github.com/repos/aws/aws-sdk-go/issues/comments/241591995","html_url":"https://github.com/aws/aws-sdk-go/issues/378#issuecomment-241591995","issue_url":"https://api.github.com/repos/aws/aws-sdk-go/issues/378","id":241591995,"user":{"login":"rfielding","id":89911,"avatar_url":"https://avatars.githubusercontent.com/u/89911?v=3","gravatar_id":"","url":"https://api.github.com/users/rfielding","html_url":"https://github.com/rfielding","followers_url":"https://api.github.com/users/rfielding/followers","following_url":"https://api.github.com/users/rfielding/following{/other_user}","gists_url":"https://api.github.com/users/rfielding/gists{/gist_id}","starred_url":"https://api.github.com/users/rfielding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rfielding/subscriptions","organizations_url":"https://api.github.com/users/rfielding/orgs","repos_url":"https://api.github.com/users/rfielding/repos","events_url":"https://api.github.com/users/rfielding/events{/privacy}","received_events_url":"https://api.github.com/users/rfielding/received_events","type":"User","site_admin":false},"created_at":"2016-08-23T00:27:47Z","updated_at":"2016-08-23T00:27:47Z","body":"Thanks for that useful debugging tip.  I got a similar looking error while writing to CloudWatch.  Missing x-amz-content-sha256.  I'm not sure why yet.\r\n```\r\nodrive_1      | 2016/08/23 00:21:58 DEBUG: Request monitoring/PutMetricData Details:\r\nodrive_1      | ---[ REQUEST POST-SIGN ]-----------------------------\r\nodrive_1      | POST / HTTP/1.1\r\nodrive_1      | Host: s3.amazonaws.com\r\nodrive_1      | User-Agent: aws-sdk-go/1.4.3 (go1.6; linux; amd64)\r\nodrive_1      | Content-Length: 437\r\nodrive_1      | Authorization: AWS4-HMAC-SHA256 Credential=***/20160823/us-east-1/monitoring/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date, Signature=4bd84824c6eb8d8ef42bae82cd23c0bcac47eb0a1206c63ffc186e7682b36237\r\nodrive_1      | Content-Type: application/x-www-form-urlencoded; charset=utf-8\r\nodrive_1      | X-Amz-Date: 20160823T002158Z\r\nodrive_1      | Accept-Encoding: gzip\r\nodrive_1      | \r\nodrive_1      | Action=PutMetricData&MetricData.member.1.Dimensions=&MetricData.member.1.MetricName=RequestLatency&MetricData.member.1.StatisticValues.Maximum=1&MetricData.member.1.StatisticValues.Minimum=1&MetricData.member.1.StatisticValues.SampleCount=1&MetricData.member.1.StatisticValues.Sum=1&MetricData.member.1.Timestamp=2016-08-23T00%3A21%3A58Z&MetricData.member.1.Unit=Count&MetricData.member.1.Value=1&Namespace=objectDrive&Version=2010-08-01\r\nodrive_1      | -----------------------------------------------------\r\nodrive_1      | 2016/08/23 00:21:58 DEBUG: Response monitoring/PutMetricData Details:\r\nodrive_1      | ---[ RESPONSE ]--------------------------------------\r\nodrive_1      | HTTP/1.1 400 Bad Request\r\nodrive_1      | Connection: close\r\nodrive_1      | Transfer-Encoding: chunked\r\nodrive_1      | Content-Type: application/xml\r\nodrive_1      | Date: Tue, 23 Aug 2016 00:21:57 GMT\r\nodrive_1      | Server: AmazonS3\r\nodrive_1      | X-Amz-Id-2: 0E18nfsemgrQbQW5m4Jec6WPhC206JGoXaOzVEhrmRqLSYtMhNM8Nq94X0OXjgXYdzj/4U1qJPs=\r\nodrive_1      | X-Amz-Request-Id: 5401BD0D502B4542\r\nodrive_1      | \r\nodrive_1      | 126\r\nodrive_1      | <?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\nodrive_1      | <Error><Code>InvalidRequest</Code><Message>Missing required header for this request: x-amz-content-sha256</Message><RequestId>5401BD0D502B4542</RequestId><HostId>0E18nfsemgrQbQW5m4Jec6WPhC206JGoXaOzVEhrmRqLSYtMhNM8Nq94X0OXjgXYdzj/4U1qJPs=</HostId></Error>\r\nodrive_1      | 0\r\nodrive_1      | \r\n```"}}
{"actor":{"display_login":"rfielding"}}