Unexpected server error

Hi

we are having couchbase 5.0 version with two nodes and when we run the Query in console query work bench we are getting ’ Unexpected server error’ after trying 3 or 4 times we are getting result for our query.

But if we run the same query from Nodejs code we are getting this issue only at few times. but in console we are getting this issue regularly…

Please let us know how to fix this.

Check query.log any errors or restart of query service by killing by OS system due to Out of Memory (Can be found in OS message log)