I have some C# code communicating with Analytics API v2.4. This has been working for almost five years, but suddenly Analytics is returning malformed XML, starting with character 0x1F.
Method XmlReader.MoveToContent() throws System.Xml.XmlException with message:
' ', hexadecimal value 0x1F, is an invalid character. Line 1, position 1.
This was first noticed on 8 Aug 14:30 UTC. Four hours earlier this was not a problem.
I realize this is more a bug report than a question, still:
Thanks!
I'm guessing that the response is being gzip compressed (gzip's header starts with 1f 8b) and you'll have to decompress it now.
I'm not sure what changed, your code, your libraries or the analytics API.
Sorry I'm not a C# expert and can't help you with the code.