Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Error Domain=com.google.GDataXML Code=-1

I am developing a new app, have many under my belt with Titanium. However, this is the first which needed/uses createHTTPClient. I am not requesting any data from google, however, studio's console log shows:

[ERROR] Error Domain=com.google.GDataXML Code=-1 "The operation couldn’t be completed. (com.google.GDataXML error -1.)".   in -[TiDOMDocumentProxy parseString:] (TiDOMDocumentProxy.m:57)

Why is it connecting to google? I am not even pulling an XML file, so I am a little worried of where else this app may be connecting to, and why?!

— asked February 20th 2012 by Ozz Nixon
  • createhttpclient
  • error
  • httpclient
2 Comments
  • A little more information in the app would be helpful.

    — commented February 20th 2012 by Aaron Saunders
  • There is nothing more, it is literally - add createHTTPClient, define the callbacks to do alerts, and tell it to open("my server"), send(). Which works, perfectly. However, on the iPhone simulator I get the above message. On the droid, I have not noticed, but with the millions of lines flying by from the emulator, who could tell.

    — commented February 20th 2012 by Ozz Nixon

2 Answers

  • Accepted Answer

    com.google.GDataXML is the name of the Google open source XML parser. It can also be used as a generic DOM parser. So, if you are doing a http request ,dont be suprised if its being called. You are not contacting Google - dont worry :-)

    — answered February 20th 2012 by Nick Milner
    permalink
    1 Comment
    • Okay, after digging around in the app simulator log folder, I found:

      [DEBUG] application booted in 97.389996 ms
      Entity: line 1: parser error : Extra content at the end of the document
      <p><h1>Welcome to 3F Wiki Engine (www.3fwiki.com)</h1></p><p>Everything you woul
      
                                                                              ^
      [ERROR] Error Domain=com.google.GDataXML Code=-1 "The operation couldn’t be completed. (com.google.GDataXML error -1.)".   in -[TiDOMDocumentProxy parseString:] (TiDOMDocumentProxy.m:57)
      ~
      

      But you answered the more important question… it is not actually connecting outward and pushing my data to be parsed. Thanks!

      — commented February 20th 2012 by Ozz Nixon
  • I know this is an old post. But for anyone else finding it I thought I would just add what I found to be the reason that this strange message appeared.

    Basically, it was caused by an XML error in a strings.xml file - i.e. a simple parsing problem of one of my own XML files ;-)

    — answered October 17th 2014 by John Dalsgaard
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.