{"action":"closed","issue":{"url":"https://api.github.com/repos/rusoto/rusoto/issues/215","repository_url":"https://api.github.com/repos/rusoto/rusoto","labels_url":"https://api.github.com/repos/rusoto/rusoto/issues/215/labels{/name}","comments_url":"https://api.github.com/repos/rusoto/rusoto/issues/215/comments","events_url":"https://api.github.com/repos/rusoto/rusoto/issues/215/events","html_url":"https://github.com/rusoto/rusoto/issues/215","id":147131625,"number":215,"title":"Content-Type: x-amz-json-1.1 doesn't work for me","user":{"login":"rix0rrr","id":524162,"avatar_url":"https://avatars.githubusercontent.com/u/524162?v=3","gravatar_id":"","url":"https://api.github.com/users/rix0rrr","html_url":"https://github.com/rix0rrr","followers_url":"https://api.github.com/users/rix0rrr/followers","following_url":"https://api.github.com/users/rix0rrr/following{/other_user}","gists_url":"https://api.github.com/users/rix0rrr/gists{/gist_id}","starred_url":"https://api.github.com/users/rix0rrr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rix0rrr/subscriptions","organizations_url":"https://api.github.com/users/rix0rrr/orgs","repos_url":"https://api.github.com/users/rix0rrr/repos","events_url":"https://api.github.com/users/rix0rrr/events{/privacy}","received_events_url":"https://api.github.com/users/rix0rrr/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-09T14:09:05Z","updated_at":"2016-04-11T00:47:24Z","closed_at":"2016-04-11T00:47:24Z","body":"I don't know how this works for you, but since the upgrade all my DynamoDB requests are failing with:\r\n\r\n    AwsError { message: \\\"Failed to parse error as JSON: \\\\\\\"expected value\\\\\\\" at line 1 column 1.\\\\nRaw error:\\\\n<!DOCTYPE html PUBLIC \\\\\\\"-//W3C//DTD XHTML 1.0 Transitional//EN\\\\\\\" \\\\\\\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\\\\\\\">\\\\n<html xmlns=\\\\\\\"http://www.w3.org/1999/xhtml\\\\\\\" xml:lang=\\\\\\\"en\\\\\\\" lang=\\\\\\\"en\\\\\\\">\\\\n<head>\\\\n <title>Page Not Found</title>\\\\n</head>\\\\n<body>Page Not Found</body>\\\\n</html>\\\" }\r\n\r\nAnd it checks out. If I replay my request using curl:\r\n\r\n    curl -d @bla.txt -H 'x-amz-content-sha256: 9955fb97fb73507e8eb72474f572afbba3b7d59d19324052bab4c5c949d9e1be' -H 'x-amz-target: DynamoDB_20120810.UpdateItem' -H 'content-type: application/x-amz-json-1.1' -H 'Host: dynamodb.eu-west-1.amazonaws.com' -H 'x-amz-date: 20160409T135929Z' -H 'authorization: AWS4-HMAC-SHA256 Credential=AKIAJT4RBNEWBQHRHKLA/20160409/eu-west-1/dynamodb/aws4_request, SignedHeaders=host;x-amz-date;x-amz-target, Signature=eabb94677b4a6dd812e2cfc1d2a756521d6fefa61e2e2a16c779def6875436b4' http://dynamodb.eu-west-1.amazonaws.com -vv\r\n    * Rebuilt URL to: http://dynamodb.eu-west-1.amazonaws.com/\r\n    *   Trying 176.32.111.182...\r\n    * Connected to dynamodb.eu-west-1.amazonaws.com (176.32.111.182) port 80 (#0)\r\n    > POST / HTTP/1.1\r\n    > Host: dynamodb.eu-west-1.amazonaws.com\r\n    > User-Agent: curl/7.43.0\r\n    > Accept: */*\r\n    > x-amz-content-sha256: 9955fb97fb73507e8eb72474f572afbba3b7d59d19324052bab4c5c949d9e1be\r\n    > x-amz-target: DynamoDB_20120810.UpdateItem\r\n    > content-type: application/x-amz-json-1.1\r\n    > x-amz-date: 20160409T135929Z\r\n    > authorization: AWS4-HMAC-SHA256 Credential=AKIAJT4RBNEWBQHRHKLA/20160409/eu-west-1/dynamodb/aws4_request, SignedHeaders=host;x-amz-date;x-amz-target, Signature=eabb94677b4a6dd812e2cfc1d2a756521d6fefa61e2e2a16c779def6875436b4\r\n    > Content-Length: 754\r\n    >\r\n    * upload completely sent off: 754 out of 754 bytes\r\n    < HTTP/1.1 404 Not Found\r\n    < x-amzn-RequestId: 7DJO7KONVCTIC0RTL2JGOTAS8BVV4KQNSO5AEMVJF66Q9ASUAAJG\r\n    < x-amz-crc32: 2548615100\r\n    < Content-Length: 272\r\n    < Date: Sat, 09 Apr 2016 14:06:07 GMT\r\n    <\r\n    <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n    <html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\r\n    <head>\r\n    <title>Page Not Found</title>\r\n    </head>\r\n    <body>Page Not Found</body>\r\n    * Connection #0 to host dynamodb.eu-west-1.amazonaws.com left intact\r\n    </html>\r\n\r\nBut then if I change the Content-Type from x-amz-json-1.1 to x-amz-json-1.0:\r\n\r\n    curl -d @bla.txt -H 'x-amz-content-sha256: 9955fb97fb73507e8eb72474f572afbba3b7d59d19324052bab4c5c949d9e1be' -H 'x-amz-target: DynamoDB_20120810.UpdateItem' -H 'content-type: application/x-amz-json-1.0' -H 'Host: dynamodb.eu-west-1.amazonaws.com' -H 'x-amz-date: 20160409T135929Z' -H 'authorization: AWS4-HMAC-SHA256 Credential=AKIAJT4RBNEWBQHRHKLA/20160409/eu-west-1/dynamodb/aws4_request, SignedHeaders=host;x-amz-date;x-amz-target, Signature=eabb94677b4a6dd812e2cfc1d2a756521d6fefa61e2e2a16c779def6875436b4' http://dynamodb.eu-west-1.amazonaws.com -vv\r\n    * Rebuilt URL to: http://dynamodb.eu-west-1.amazonaws.com/\r\n    *   Trying 176.32.111.182...\r\n    * Connected to dynamodb.eu-west-1.amazonaws.com (176.32.111.182) port 80 (#0)\r\n    > POST / HTTP/1.1\r\n    > Host: dynamodb.eu-west-1.amazonaws.com\r\n    > User-Agent: curl/7.43.0\r\n    > Accept: */*\r\n    > x-amz-content-sha256: 9955fb97fb73507e8eb72474f572afbba3b7d59d19324052bab4c5c949d9e1be\r\n    > x-amz-target: DynamoDB_20120810.UpdateItem\r\n    > content-type: application/x-amz-json-1.0\r\n    > x-amz-date: 20160409T135929Z\r\n    > authorization: AWS4-HMAC-SHA256 Credential=AKIAJT4RBNEWBQHRHKLA/20160409/eu-west-1/dynamodb/aws4_request, SignedHeaders=host;x-amz-date;x-amz-target, Signature=eabb94677b4a6dd812e2cfc1d2a756521d6fefa61e2e2a16c779def6875436b4\r\n    > Content-Length: 754\r\n    >\r\n    * upload completely sent off: 754 out of 754 bytes\r\n    < HTTP/1.1 200 OK\r\n    < x-amzn-RequestId: O3OL8AGBKLB1JK55G0L045V5UNVV4KQNSO5AEMVJF66Q9ASUAAJG\r\n    < x-amz-crc32: 2745614147\r\n    < Content-Type: application/x-amz-json-1.0\r\n    < Content-Length: 2\r\n    < Date: Sat, 09 Apr 2016 14:06:24 GMT\r\n    <\r\n    * Connection #0 to host dynamodb.eu-west-1.amazonaws.com left intact\r\n    {}\r\n\r\nSo it seems that, at least on my account, the new Content-Type is not accepted.\r\n\r\n"}}