{"action":"created","issue":{"url":"https://api.github.com/repos/apache/libcloud/issues/538","labels_url":"https://api.github.com/repos/apache/libcloud/issues/538/labels{/name}","comments_url":"https://api.github.com/repos/apache/libcloud/issues/538/comments","events_url":"https://api.github.com/repos/apache/libcloud/issues/538/events","html_url":"https://github.com/apache/libcloud/pull/538","id":92418514,"number":538,"title":"Replaced 'utf8' in ET.tostring with 'utf-8', invalid XML (400) otherwise","user":{"login":"jeverling","id":121946,"avatar_url":"https://avatars.githubusercontent.com/u/121946?v=3","gravatar_id":"","url":"https://api.github.com/users/jeverling","html_url":"https://github.com/jeverling","followers_url":"https://api.github.com/users/jeverling/followers","following_url":"https://api.github.com/users/jeverling/following{/other_user}","gists_url":"https://api.github.com/users/jeverling/gists{/gist_id}","starred_url":"https://api.github.com/users/jeverling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeverling/subscriptions","organizations_url":"https://api.github.com/users/jeverling/orgs","repos_url":"https://api.github.com/users/jeverling/repos","events_url":"https://api.github.com/users/jeverling/events{/privacy}","received_events_url":"https://api.github.com/users/jeverling/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-01T15:51:04Z","updated_at":"2015-07-05T09:05:18Z","closed_at":"2015-07-05T09:04:49Z","pull_request":{"url":"https://api.github.com/repos/apache/libcloud/pulls/538","html_url":"https://github.com/apache/libcloud/pull/538","diff_url":"https://github.com/apache/libcloud/pull/538.diff","patch_url":"https://github.com/apache/libcloud/pull/538.patch"},"body":"The XML that is generated by the Azure driver contains `encoding='utf8'`, which doesn't work, the Azure API returns a 400 response. If this is changed to `utf-8`, it does work. Adjusting the `encoding` argument passed to `ET.tostring` solved the 400 responses I was getting when using `ex_create_cloud_service`."},"comment":{"url":"https://api.github.com/repos/apache/libcloud/issues/comments/118597006","html_url":"https://github.com/apache/libcloud/pull/538#issuecomment-118597006","issue_url":"https://api.github.com/repos/apache/libcloud/issues/538","id":118597006,"user":{"login":"Kami","id":125088,"avatar_url":"https://avatars.githubusercontent.com/u/125088?v=3","gravatar_id":"","url":"https://api.github.com/users/Kami","html_url":"https://github.com/Kami","followers_url":"https://api.github.com/users/Kami/followers","following_url":"https://api.github.com/users/Kami/following{/other_user}","gists_url":"https://api.github.com/users/Kami/gists{/gist_id}","starred_url":"https://api.github.com/users/Kami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kami/subscriptions","organizations_url":"https://api.github.com/users/Kami/orgs","repos_url":"https://api.github.com/users/Kami/repos","events_url":"https://api.github.com/users/Kami/events{/privacy}","received_events_url":"https://api.github.com/users/Kami/received_events","type":"User","site_admin":false},"created_at":"2015-07-05T09:05:18Z","updated_at":"2015-07-05T09:05:18Z","body":"@jeverling Thanks, I've merged changes into trunk.\r\n\r\nOn a related note - when I was originally working and testing the changes, it mostly worked, but occasionally got 400 status code back. I was digging into it, but I never could consistently reproduce the issue or find the root cause (I thought there was something weird going on, on the Azure side).\r\n\r\nI wonder if there there is something \"weird\" going on, on the Azure side - e.g. some servers accept XML with non-standard encoding declaration and others don't. Although, I think it would be unlikely they have different versions / libraries running on different servers..."}}