ViewQuery.range(start, end) raise error when not giving end or end is undefined value

When I call ViewQuery.range() without end key, error occurs

Error: bad_request: invalid UTF-8 JSON: {{error,insufficient_data},[]}

I captured http traffic and found that empty endkey value.

http://couchbase:8092/ichamp/_design/vod_api/_view/list_by_program?limit=4&startkey="hello"&endkey&skip=1

If I remove endkey from url, it works.
NodeJS SDK should remove endkey parameter when endkey is undefined value.

Hey @chaeyk,

Can you provide a code example of what you passed to the SDK? Usually an undefined value should work appropriately, but it seems like you may be passing some other type of “empty” value (such as an empty string or null).

Cheers, Brett