Error while rxecuting query

{ Error [ERR_STREAM_WRITE_AFTER_END]: write after end
I am getting this error when I am trying to execute connection.query() from my ide.

Send the code / entire project. You should send the code whenever you ask error related doubts.

Since there is no reply, I am assuming the issue is resolved. Closing the issue, reopen if you want.