Thank you very much. my mistake, I can query the data now.

On Friday, July 17, 2015 at 11:16:25 PM UTC+8, Jens Alfke wrote:
>
>
> On Jul 17, 2015, at 4:51 AM, atom992 <[email protected] <javascript:>> 
> wrote:
>
> GET 
> /cbldb/_design/poc/_view/getListByKey?stale=ok&connection_timeout=60000&startkey=%5B%22KEY:4f9a9c7f-969e-44a4-89b0-19411c8e6b46%22%2C%22TYPE1%22%%5D%22&endkey=%5B%22KEY:4f9a9c7f-969e-44a4-89b0-19411c8e6b46%22%2C%22TYPE1%22%2C%7B%7D5D
>  
> HTTP/1.1
>
>
> I tried unescaping the startkey and endkey params, and there are some 
> glitches. startkey unescapes to:
>
> ["KEY:4f9a9c7f-969e-44a4-89b0-19411c8e6b46","TYPE1"%]”
>
> Note the bogus “%” — the raw version in the URL has “…%%5D…” in it.
>
> endkey unescapes to:
>
> ["KEY:4f9a9c7f-969e-44a4-89b0-19411c8e6b46","TYPE1",{}5D
>
> because of a missing “%” before the final “5D”.
>
> It’s almost like a “%” was cut from the endkey and pasted into the 
> startkey somehow. Weird!
>
> However, Couchbase Lite still seems to be responding the wrong way. It 
> should return a 400, not throw an exception.
>
> —Jens
>

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/20a764a9-464a-4a72-8fbb-a82cc1a4619d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to