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

api服务器运行一阵后会报错 #2

Open
shenyaocan opened this issue Apr 23, 2022 · 0 comments
Open

api服务器运行一阵后会报错 #2

shenyaocan opened this issue Apr 23, 2022 · 0 comments

Comments

@shenyaocan
Copy link

D:\nodejs\shuti\api>node index.js
koa deprecated Support for generators will be removed in v3. See the documentation for examples of how to convert old middleware https://github.com/koajs/koa/blob/master/docs/migration.md index.js:72:5
(node:14512) Warning: Accessing non-existent property 'del' of module exports inside circular dependency
(Use node --trace-warnings ... to show where the warning was created)
应用已经启动,http://localhost:3000
node:events:504
throw er; // Unhandled 'error' event
^

Error: Connection lost: The server closed the connection.
at Protocol.end (D:\nodejs\shuti\api\node_modules\mysql\lib\protocol\Protocol.js:112:13)
at Socket. (D:\nodejs\shuti\api\node_modules\mysql\lib\Connection.js:94:28)
at Socket. (D:\nodejs\shuti\api\node_modules\mysql\lib\Connection.js:526:10)
at Socket.emit (node:events:538:35)
at endReadableNT (node:internal/streams/readable:1345:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
Emitted 'error' event on Connection instance at:
at Connection._handleProtocolError (D:\nodejs\shuti\api\node_modules\mysql\lib\Connection.js:423:8)
at Protocol.emit (node:events:526:28)
at Protocol._delegateError (D:\nodejs\shuti\api\node_modules\mysql\lib\protocol\Protocol.js:398:10)
at Protocol.end (D:\nodejs\shuti\api\node_modules\mysql\lib\protocol\Protocol.js:116:8)
at Socket. (D:\nodejs\shuti\api\node_modules\mysql\lib\Connection.js:94:28)
[... lines matching original stack trace ...]
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
fatal: true,
code: 'PROTOCOL_CONNECTION_LOST'
}

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