PUT /values API example

8 views
Skip to first unread message

otoburb

unread,
May 18, 2011, 11:32:21 PM5/18/11
to fluiddb...@googlegroups.com
Hi,

I'm working through the PUT /values example at
http://api.fluidinfo.com/html/api.html#values.
Fluidinfo is returning HTTP 400 (request id "rdyxkcqbbwgbmvvc"). As
far as I can tell, my JSON payload well-formed and seems to be
identical to the example provided.
I'm testing against the main instance.

I know that the API example uses fictitious tags, but I was expecting
either 401 or 404 errors. The HTTP 400 Bad Request response headers
are shown below from within the Factor language UI environment:

{ header
H{
{ "connection" "close" }
{ "content-type" "text/html" }
{ "x-fluiddb-request-id" "bpdrmkffjtigtacz" }
{ "transfer-encoding" "chunked" }
{ "date" "Thu, 19 May 2011 03:24:08 GMT" }
{ "server" "nginx/0.7.65" }
{ "x-fluiddb-error-class" "MissingArgument" }
{ "x-fluiddb-argument" "query" }
}
}
{ cookies { } }
{ content-type "text/html" }
{ content-charset "UTF-8" }
{ content-encoding utf8 }
{ body "" }

I looked at the x-fluiddb-argument header and figured that fluiddb
might want "query" instead of "queries", but when I tried that
(request "ywjuquclzmidrdog") it also returned HTTP 400.

It took me several hours figuring out how to properly nest various
JSON objects and arrays to match the example, so I'm suspecting that I
may be missing a bracket or perhaps something is malformed in my
payload.
I tried to troubleshoot, but I'm at a loss. Hope that somebody can
verify with their own library if this same behaviour shows itself.


Thanks,
Davison

Reply all
Reply to author
Forward
0 new messages