Jump to content

GData Error: Intermittent “Invalid root element”

enguyen's Photo
Posted Nov 13 2009 04:08 PM
4647 Views

I'm sending GData queries to renders traffic charts for users of Instructables.com using the Java GData package. However, this exception is sometimes thrown:

[Line 1, Column 0] Invalid root element, expected (namespace uri:local name) of (http://www.w3.org/2005/Atom%3Afeed), found (:feed


The only mention of this error I can find online is here, but I'm quite certain that our feed URL is properly formed. For example, here is a URL that we might send:

https://www.google.c...rted_Bookshelf/,ga:pagePath==/id/Munny-Speakers/,ga:pagePath==/id/Zippo-Trick%253a-The-Twilight-Zone/,ga:pagePath==/id/Firefox-Pranks/,ga:pagePath==/id/Guitar-Hero-LED-Mod/


Strangely, this same query will work locally, but fail on our staging server, but then work in production. And even if this query fails in one context, other queries will be fine in that same context. I know that these queries must be part of authenticated HTTP requests. Could this be the issue? I am using the same Google account (same login/ password) to send the queries in each case.

Tags:
1 Subscribe


0 Replies