Hello, I'm stumped on a bug and am hoping some alternate eyes can help. <br><br>I'm http posting mql writes to add data to freebase. Most write queries are working well, but this one seems to give me an error that I cannot reproduce using the freebase query editor. It's likely a small error, but I can't seem to find what's wrong. <span class="HcCDpe">My post is:<br>
<br>{<br> "q1": {<br> "query": {<br> "id":"/guid/9202a8c04000641f800000000b0b99f0",<br> "type":"/location/mailing_address",<br>
"street_address" : {<br> "connect" : "replace",<br> "value" : "test value",<br> "type" : "/type/text",<br>
"lang":"/lang/en"<br> },<br> }<br> }<br>}<br><br>And my errory response is:<br><br>mqlwrite response:<br>{<br> "code": "api status error",<br>
"messages": [<br> "JSON parsing error at line 1, column 252 (position 251): Unexpected U+007D while looking for property name."<br> ],<br> "status": "500 Internal Server Error",<br>
"transaction_id": "cache;cache02.sandbox.sjc1:8101;2009-03-01T02:34:00Z;0001"<br>}<br><br>And please find http info below. However f I do the similar query in the freebase query editor (<a href="http://sandbox.freebase.com/tools/queryeditor">http://sandbox.freebase.com/tools/queryeditor</a>), it works fine:<br>
Querry: <br>{<br> "id" : "/guid/9202a8c04000641f800000000b0b99e0",<br> "street_address" : {<br> "connect" : "replace",<br> "lang" : "/lang/en",<br>
"type" : "/type/text",<br> "value" : "12341234"<br> },<br> "type" : "/location/mailing_address"<br>}<br>Response:<br>{<br> "id" : "/guid/9202a8c04000641f800000000b0b99f0",<br>
"street_address" : {<br> "connect" : "present",<br> "lang" : "/lang/en",<br> "type" : "/type/text",<br> "value" : "test value"<br>
},<br> "type" : "/location/mailing_address"<br>}<br><br>Does anyone see where my error is? <br>Thanks much! -JT<br><br><br>>>>><br>http info:<br><br></span><span class="HcCDpe">DEBUG 2009-03-01 02:33:25,510 urlfetch_stub.py]
Making HTTP request: host = <a href="http://sandbox.freebase.com">sandbox.freebase.com</a>, url =
<a href="http://sandbox.freebase.com/api/account/login?username">http://sandbox.freebase.com/api/account/login?username</a><br>
e=true, payload = , headers = {'Content-Length': 0, 'Host':
'<a href="http://sandbox.freebase.com">sandbox.freebase.com</a>', 'Accept': '*/*', 'X-Metaweb-Request': 'adsfadf'}<br>
login set-cookies:<br>
metaweb-user="A|x_343634|u_bioventurist|g_#9202a8c04000641f8000000008598df8|4.Am3/uGFjamfwV3vVOrUu8w";
expires=Sun, 15-Mar-2009 02:34:00 GMT; Path=/; HttpOnly, m<br>
rist|u_bioventurist|g_#9202a8c04000641f8000000008598df8|0.; expires=Sun, 15-Mar-2009 02:34:00 GMT; Path=/<br>
DEBUG 2009-03-01 02:33:25,635 urlfetch_stub.py] Making HTTP request:
host = <a href="http://sandbox.freebase.com">sandbox.freebase.com</a>, url =
<a href="http://sandbox.freebase.com/api/service/mqlwrite">http://sandbox.freebase.com/api/service/mqlwrite</a>, payl<br>
9%22q1%22%3A+%7B%09%09%22query%22%3A+%7B%09%09%09%22id%22%3A%22%2Fguid%2F9202a8c04000641f800000000b0b99f0%22%2C%09%09%09%22type%22%3A%22%2Flocation%2Fmailing_add<br>
+%3A+%7B%09++%09%09%09%22connect%22+%3A+%22replace%22%2C%09%09%09%09%22value%22+%3A+%22test+value%22%2C%09%09%09%09%22type%22+%3A+%22%2Ftype%2Ftext%22%2C%09+++++<br>
09%09%09%09%7D%2C%09%09%09%7D%09%09%7D%7D, headers = {'Content-Length':
474, 'X-Metaweb-Request': 'adsfadf', 'Accept': '*/*', 'Host':
'<a href="http://sandbox.freebase.com">sandbox.freebase.com</a>', 'Co<br>
enturist|g_#9202a8c04000641f8000000008598df8|4.Am3/uGFjamfwV3vVOrUu8w";
expires=Sun, 15-Mar-2009 02:34:00 GMT; Path=/; HttpOnly,
metaweb-user-info=A|p_%2Fuser%2F<br>
4000641f8000000008598df8|0.; expires=Sun, 15-Mar-2009 02:34:00 GMT;
Path=/', 'Content-Type': 'application/x-www-form-urlencoded'}<br>
</span><br><span class="HcCDpe"><br><br></span>