You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Server shut down abruptly due to following sql connection error.
9 Apr 14:52:43 - Database is successfully connected
9 Apr 14:52:43 - Chat app listening at 3000
events.js:291
throw er; // Unhandled 'error' event
^
Error: Connection lost: The server closed the connection.
at Protocol.end (/home/ubuntu/server/chat-app-backend/node_modules/mysql/lib/protocol/Protocol.js:112:13)
at Socket.<anonymous> (/home/ubuntu/server/chat-app-backend/node_modules/mysql/lib/Connection.js:94:28)
at Socket.<anonymous> (/home/ubuntu/server/chat-app-backend/node_modules/mysql/lib/Connection.js:526:10)
at Socket.emit (events.js:326:22)
at endReadableNT (_stream_readable.js:1241:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
Emitted 'error' event on Connection instance at:
at Connection._handleProtocolError (/home/ubuntu/server/chat-app-backend/node_modules/mysql/lib/Connection.js:423:8)
at Protocol.emit (events.js:314:20)
at Protocol._delegateError (/home/ubuntu/server/chat-app-backend/node_modules/mysql/lib/protocol/Protocol.js:398:10)
at Protocol.end (/home/ubuntu/server/chat-app-backend/node_modules/mysql/lib/protocol/Protocol.js:116:8)
at Socket.<anonymous> (/home/ubuntu/server/chat-app-backend/node_modules/mysql/lib/Connection.js:94:28)
[... lines matching original stack trace ...]
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
fatal: true,
code: 'PROTOCOL_CONNECTION_LOST'
}
Server shut down abruptly due to following sql connection error.
Potential Fix : https://stackoverflow.com/questions/20210522/nodejs-mysql-error-connection-lost-the-server-closed-the-connection
The text was updated successfully, but these errors were encountered: