我在Heroku和 与用户登录后,将显示带有所有必需信息的react admin页面。 20秒后,我发现节点服务器崩溃。 在像MAMP这样的本地服务器上,没有崩溃!
我尝试遍历所有文件,但没有看到任何错误。
events.js:173
[0] throw er; // Unhandled 'error' event
[0] ^
[0]
[0] Error: Connection lost: The server closed the connection.
[0] at Protocol.end (/Users/robertgloach/WebstormProjects/vacation-312833916/node_modules/mysql/lib/protocol/Protocol.js:112:13)
[0] at Socket.<anonymous> (/Users/robertgloach/WebstormProjects/vacation-312833916/node_modules/mysql/lib/Connection.js:97:28)
[0] at Socket.<anonymous> (/Users/robertgloach/WebstormProjects/vacation-312833916/node_modules/mysql/lib/Connection.js:525:10)
[0] at Socket.emit (events.js:201:15)
[0] at endReadableNT (_stream_readable.js:1130:12)
[0] at processTicksAndRejections (internal/process/task_queues.js:84:17)
[0] Emitted 'error' event at:
[0] at Connection._handleProtocolError (/Users/robertgloach/WebstormProjects/vacation-312833916/node_modules/mysql/lib/Connection.js:426:8)
[0] at Protocol.emit (events.js:196:13)
[0] at Protocol._delegateError (/Users/robertgloach/WebstormProjects/vacation-312833916/node_modules/mysql/lib/protocol/Protocol.js:398:10)
[0] at Protocol.end (/Users/robertgloach/WebstormProjects/vacation-312833916/node_modules/mysql/lib/protocol/Protocol.js:116:8)
[0] at Socket.<anonymous> (/Users/robertgloach/WebstormProjects/vacation-312833916/node_modules/mysql/lib/Connection.js:97:28)
[0] [... lines matching original stack trace ...]
[0] at processTicksAndRejections