- Thread starter
- #101
I had this too once the other day. Is basically that last.fm returned something that was not valid. I will add some other logging to try and catch this if it happens again1 tiny hick-up in HTTP response:
which was completely unnoticeable in MPCode:[2013-05-04 14:39:31,975] [Error ] [Announce/Auto DJ] [ERROR] - Error in Last.fm AutoDJ [2013-05-04 14:39:31,984] [Log ] [Announce/Auto DJ] [ERROR] - Exception: MediaPortal.LastFM.LastFMException: Error in HTTP response ---> System.Xml.XmlException: Unexpected XML declaration. The XML declaration must be the first node in the document, and no white space characters are allowed to appear before it. Line 2, position 3. at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.Throw(String res, String arg) at System.Xml.XmlTextReaderImpl.ParsePI(BufferBuilder piInDtdStringBuilder) at System.Xml.XmlTextReaderImpl.ParseDocumentContent() at System.Xml.XmlTextReaderImpl.Read() at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options) at System.Xml.Linq.XDocument.Parse(String text, LoadOptions options) at System.Xml.Linq.XDocument.Parse(String text) at MediaPortal.LastFM.LastFMLibrary.GetXml(String querystring, String httpMethod, Boolean useHttps) --- End of inner exception stack trace --- at MediaPortal.LastFM.LastFMLibrary.GetXml(String querystring, String httpMethod, Boolean useHttps) at MediaPortal.LastFM.LastFMLibrary.GetSimilarTracks(String strTrack, String strArtist) at MediaPortal.ProcessPlugins.LastFMScrobbler.LastFMScrobbler.AutoDJ(String strArtist, String strTrack) Message: Error in HTTP response Site : System.Xml.Linq.XDocument GetXml(System.String, System.String, Boolean) Source : LastFMLibrary Inner Exception(s): -> Error in HTTP response -> Unexpected XML declaration. The XML declaration must be the first node in the document, and no white space characters are allowed to appear before it. Line 2, position 3. Stack Trace: at MediaPortal.LastFM.LastFMLibrary.GetXml(String querystring, String httpMethod, Boolean useHttps) at MediaPortal.LastFM.LastFMLibrary.GetSimilarTracks(String strTrack, String strArtist) at MediaPortal.ProcessPlugins.LastFMScrobbler.LastFMScrobbler.AutoDJ(String strArtist, String strTrack)