[Developers] Issues with Javascript "Developing Metaweb-Enabled Web Applications" examples
Vishal Talwar
rawlatv at gmail.com
Thu Jun 28 20:22:26 UTC 2007
>From what I can tell, the examples are simply out of date with the new query
result envelope format.
On 6/28/07, Mason Hall <rkmase at gmail.com> wrote:
>
>
> I'm sure I'm overlooking something very obvious, but I can't seem to get
> any of the javascript examples (found here:
> http://www.freebase.com/view/documentation/ch04.html#id2619120) to work on
> my server. They all seem to send 'q' from "Metaweb.read" function, but
> return nothing.
>
> Using the "album lookup" as an example, my live HTTP headers are giving me
> the following on submission:
>
> ----------------------------------
> http://www.freebase.com/api/service/mqlread?queries=%7B%22qname%22%3A%7B%22query%22%3A%7B%22type%22%3A%22%2Fmusic%2Fartist%22%2C%22name%22%3A%22police%22%2C%22album%22%3A%5B%7B%22name%22%3Anull%2C%22release_date%22%3Anull%2C%22sort%22%3A%22release_date%22%7D%5D%7D%7D%7D&callback=Metaweb._2
>
>
> GET
> /api/service/mqlread?queries=%7B%22qname%22%3A%7B%22query%22%3A%7B%22type%22%3A%22%2Fmusic%2Fartist%22%2C%22name%22%3A%22police%22%2C%22album%22%3A%5B%7B%22name%22%3Anull%2C%22release_date%22%3Anull%2C%22sort%22%3A%22release_date%22%7D%5D%7D%7D%7D&callback=Metaweb._2
> HTTP/1.1
> Host: www.freebase.com
> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: 1.8.1.4)
> Gecko/20070515 Firefox/2.0.0.4
> Accept: */*
> Accept-Language: en-us,en;q= 0.5
> Accept-Encoding: gzip,deflate
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive: 300
> Connection: keep-alive
> Referer: http://webdev.lib.fsu.edu/freebase
> Cookie: metaweb-user=A|u_rkmase|g_#thisiswheremycookieisis;
> hideEmpty=false; Container_tree%20view=false; Container_json%20result=true;
> metaweb-user-info=A|p_%2Fuser%2Frkmase|u_rkmase|g_#thisiswheremycookieisis.;
> Container_full%20json%20result=false;
> BrowserPID=7LOC7RB9/view/documentation/
>
> HTTP/1.x 200 OK
> Date: Thu, 28 Jun 2007 19:01:55 GMT
> Server: Apache/2.0.58
> Content-Encoding: gzip
> Vary: Accept-Encoding
> Content-Length: 104
> X-Metaweb-Cost: dt=0.035, nreqs=3, tr=0.01, tu=0.008, ts= 0.0, pr=0, pf=0,
> dw=0, dr=790, in=834, ir=260, iw=0, va=2983, te=0.01, tg=0.00780010223389,
> tf=0.00989007949829, tm=0.0250539779663
> Content-Type: application/javascript
> X-Cache: MISS from cache01.p01.sfo1.metaweb.com
> Connection: keep-alive
> Last-Modified: Thu, 28 Jun 2007 19:01:55 GMT
> Cache-Control: public, max-age=1, s-maxage=5
> Expires: Thu, 28 Jun 2007 19:01:56 GMT
> X-Metaweb-TID: cache;cache01.p01.sfo1:8101;2007-06-28T19:01:55Z;0002
>
> -----------------------------------
>
> So I end up with a
>
> Albums by police *Loading...*
>
>
>
> which simply hangs, indefinitely.
>
> Any help would be greatly appreciated.
>
> Thanks,
> Mason Hall
>
> <mrhall at fsu.edu>
> _______________________________________________
> Developers mailing list
> Developers at freebase.com
> http://lists.freebase.com/mailman/listinfo/developers
>
>
--
:v
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freebase.com/pipermail/developers/attachments/20070628/2f6403f1/attachment.htm
More information about the Developers
mailing list