An unknown N1QL error occured. This is usually related to an out-of-memory condition. CouchbaseError: DNS/Hostname lookup failed

The response document from the N1QL server has been truncated - most of it is missing, the only thing that is there is the closing brace.
Is there anything in between your node.js application and the N1QL service that might be corrupting the response?