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

npm start后terminal会不正常的一直刷 #12

Open
JackieZhang-Coding opened this issue Jan 25, 2021 · 2 comments
Open

npm start后terminal会不正常的一直刷 #12

JackieZhang-Coding opened this issue Jan 25, 2021 · 2 comments

Comments

@JackieZhang-Coding
Copy link

启动后,terminal会不停的刷,不知道是什么问题。

@jinpengqiong
Copy link

一样的一直刷新报错
errorLabels: [ 'TransientTransactionError' ],
[Symbol(mongoErrorContextSymbol)]: {}
}
(node:39889) UnhandledPromiseRejectionWarning: MongoNetworkError: failed to connect to server [localhost:27017] on first connect [Error: connect ECONNREFUSED 127.0.0.1:27017
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1146:16) {
name: 'MongoNetworkError',
errorLabels: [Array],
[Symbol(mongoErrorContextSymbol)]: {}
}]
at Pool. (/Users/admin/Desktop/GraphQL-demo/node_modules/mongodb/lib/core/topologies/server.js:433:11)
at Pool.emit (events.js:376:20)
at /Users/admin/Desktop/GraphQL-demo/node_modules/mongodb/lib/core/connection/pool.js:562:14
at /Users/admin/Desktop/GraphQL-demo/node_modules/mongodb/lib/core/connection/pool.js:985:11
at /Users/admin/Desktop/GraphQL-demo/node_modules/mongodb/lib/core/connection/connect.js:40:11
at callback (/Users/admin/Desktop/GraphQL-demo/node_modules/mongodb/lib/core/connection/connect.js:262:5)
at Socket. (/Users/admin/Desktop/GraphQL-demo/node_modules/mongodb/lib/core/connection/connect.js:287:7)
at Object.onceWrapper (events.js:483:26)
at Socket.emit (events.js:376:20)
at emitErrorNT (internal/streams/destroy.js:106:8)
at emitErrorCloseNT (internal/streams/destroy.js:74:3)
at processTicksAndRejections (internal/process/task_queues.js:82:21)
(node:39889) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 516)

@binghong-chen
Copy link

image

需要mongodb环境

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

3 participants