[Developers] unexpected output from /api/service/mqlread
augusto callejas
acallejas at appliedminds.com
Mon May 11 20:29:24 UTC 2009
hi-
i'm doing a query for all business_locations, and using cursoring:
{opening_date=[], parent_company=[{optional=true, guid=null}], type=/
business/business_location, guid=null, name=null}
however, after some point, i'm getting this from the HTTP response body:
===
<HTML><HEAD><META HTTP-EQUIV="REFRESH" CONTENT="0;URL=http://freebase.com/api/service/mqlread
"></HEAD><BODY>
</BODY></HTML>
base/type_hints/included_types":[],"domain":"/type","id":"/type/
enumeration","name":"Enumeration","type":"/type/type"},"id":"/
government/canadian_mp/house_id","master_property":null,"name":"House
ID","reverse_property":null,"unique":[]}],"type":"/type/type"},{"/
freebase/type_hints/enumeration":null,"/freebase/type_hints/
included_types":["/common/topic","/people/person","/government/
politician"],"/freebase/type_hints/mediator":null,"domain":"/
government","id":"/government/australian_mp","name":"Australian Member
of Parliament","properties":[{"expected_type":{"/freebase/type_hints/
enumeration":null,"/freebase/type_hints/included_types":[],"domain":"/
type","id":"/type/enumeration","name":"Enumeration","type":"/type/
type"},"id":"/government/australian_mp/
senate_id","master_property":null,"name":"Senate
ID","reverse_property":null,"unique":[]},{"expected_type":{"/freebase/
type_hints/enumeration":null,"/freebase/type_hints/included_types":
[],"domain":"/type","id":"/type/
enumeration","name":"Enumeration","type":"/type/type"},"id":"/
government/australian_mp/
house_id","master_property":null,"name":"House
ID","reverse_property":null,"unique":[]}],"type":"/type/
type"}]e":"Webpage","type":"/type/type"},"id":"/base/frameline/topic/
webpage","master_property":null,"name":"Web
Link(s)","reverse_property":null,"unique":[]}],"type":"/type/type"},{"/
freebase/type_hints/enumeration":null,"/freebase/type_hints/
included_types":["/common/topic","/people/person","/government/
politician"],"/freebase/type_hints/mediator":null,"domain":"/
government","id":",
===
the output contains HTML and also unrelated query response.
my parser fails at the first character "<" since its not valid JSON.
any ideas on what could be going on here?
thanks,
augusto.
More information about the Developers
mailing list