What does the error mean?
{ [Error: Cannot enqueue Query after fatal error.] code: \'PROTOCOL_ENQUEUE_AFTER_FATAL_ERROR\', fatal: false }
T
I had similar issue connecting with MySQL. I solved this issue using connection pool. The concept is to get a connection from a connection pool only when required and release it after use. That way the connection will not be in unstable state. You can get implementation details here.
I believe the issue is an express-sql-session. I'm experiencing the same issue right now. I think someone is on to something at this post: NodeJS running on MAC, and have an error occurred when deploying on centOS
Check this out too: https://github.com/felixge/node-mysql/issues/1166