Hi,
Sorry for posting it here, because currently the web site doesn’t allow me to post it to the python client issues…
When I use python sdk 1.1.0 with couchbase 2.2.0 and execute
rows = ct.query(‘a’, ‘path’, key=‘012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789’, limit=1, stale=‘false’)
for i in rows:
print i
It will generate an error:
HTTPError: <Key=’_design/a/_view/path?stale=false&limit=1&key=%22012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789%22’, HTTP Request failed. Examine ‘objextra’ for full result, C Source=(src/http.c,241), OBJ=HttpResult<RC=0x0, Value={u’reason’: u’invalid UTF-8 JSON: {{error,{9,“lexical error: invalid char in json text.\n”}},\n <<"{\“keys\”:None}">>}’, u’error’: u’bad_request’}, HTTP=400, URL=_design/a/_view/path?stale=false&limit=1&key=%22012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789%22>>
I tried the same query using the web interface of couchbase, and it returned correct results.
You can change the key to anything else. If the length is more than 150, the bug will be triggered.
thanks,
Lenx