Include_docs in querying views nodejs 2.4.3 segmentation fault couchbase server community edition 5.0

Hi,
I’m testing couchbase views with nodejs (couchbase@2.4.3) .
while everything works fine in simple query like this:
var query = ViewQuery.from(‘torus’, ‘by_pack’).key(“tutorial”);

Problems arises when I add include_docs(true)
var query = ViewQuery.from(‘torus’, ‘by_pack’).key(“tutorial”).include_docs(true);

this is the error I get:

error: uncaughtException: Unexpected end of JSON input
{ date: ‘Mon Jan 29 2018 17:00:22 GMT+0100 (CET)’,
process:
{ pid: 1573,
uid: 1000,
gid: 1000,
cwd: ‘/home/server/scripts’,
execPath: ‘/usr/bin/node’,
version: ‘v8.9.4’,
argv:
[ ‘/usr/bin/node’,
‘/home/server/scripts/test_views.js’ ],
memoryUsage:
{ rss: 51859456,
heapTotal: 24055808,
heapUsed: 16658232,
external: 674371 } },
os:
{ loadavg: [ 0.27001953125, 0.5224609375, 0.5078125 ],
uptime: 27314 },
trace:
[ { column: null,
file: null,
function: ‘parse’,
line: null,
method: null,
native: false } ],
stack:
[ ‘SyntaxError: Unexpected end of JSON input’,
’ at parse ()’ ] }
Segmentation fault (core dumped)

there are no reference on where in the library this is happening.
the view is very simple

function (doc, meta) {
if(doc.theCollection==“torus_record”) {
emit(doc.packId,{torusId:doc.torusId,userName:doc.userName,score:doc.score});
}

}
and works prefectly without include_docs option
Anybody have hda this issue before? is something due to version @2.4.3?
thanks