Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not emit error when the client closes the connection in copyto #658

Open
dgaubert opened this issue May 20, 2020 · 0 comments
Open

Do not emit error when the client closes the connection in copyto #658

dgaubert opened this issue May 20, 2020 · 0 comments

Comments

@dgaubert
Copy link
Contributor

[2020-05-20 13:06:33.739] [ERROR] console - Error: Connection closed by client
    at ServerResponse.<anonymous> (/home/ubuntu/www/node-sql-api/releases/20200520073947/lib/api/sql/copy-controller.js:95:59)
    at ServerResponse.emit (events.js:310:20)
    at emitCloseNT (_http_server.js:711:8)
    at processTicksAndRejections (internal/process/task_queues.js:83:21)

As the behavior of event end has changed in Node.js 12 it's logging this error. Luckily it isn't breaking anything as the copyto is working fine, just the connection to the database is being closed after the query ends then the pool creates a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant