Unhandled Promise rejection while yarn start
See original GitHub issueI just followed every step on the guide for the development environments, and when it gets to the yarn start on graphql folder this is what happen:
root@ubuntu:/home/openctidev/opencti/opencti-platform/opencti-graphql# yarn start
yarn run v1.17.3
$ yarn schema --env=development && yarn migrate --env=development && babel-node -r node_modules/dotenv/config ./src/server.js --e development
$ babel-node ./src/schema/schema-init.js --env=development
🚀 OpenCTI started in development mode with embedded file
(node:7082) UnhandledPromiseRejectionWarning: Error: 14 UNAVAILABLE: TCP Write failed
at Object.exports.createStatusError (/home/openctidev/opencti/opencti-platform/opencti-graphql/node_modules/grpc/src/common.js:91:15)
at Object.onReceiveStatus (/home/openctidev/opencti/opencti-platform/opencti-graphql/node_modules/grpc/src/client_interceptors.js:1204:28)
at InterceptingListener._callNext (/home/openctidev/opencti/opencti-platform/opencti-graphql/node_modules/grpc/src/client_interceptors.js:568:42)
at InterceptingListener.onReceiveStatus (/home/openctidev/opencti/opencti-platform/opencti-graphql/node_modules/grpc/src/client_interceptors.js:618:8)
at callback (/home/openctidev/opencti/opencti-platform/opencti-graphql/node_modules/grpc/src/client_interceptors.js:845:24)
(node:7082) 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(). (rejection id: 1)
(node:7082) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:7082) UnhandledPromiseRejectionWarning: ConnectionError: socket hang up
at onResponse (/home/openctidev/opencti/opencti-platform/opencti-graphql/node_modules/@elastic/elasticsearch/lib/Transport.js:220:13)
at ClientRequest.request.on.err (/home/openctidev/opencti/opencti-platform/opencti-graphql/node_modules/@elastic/elasticsearch/lib/Connection.js:114:9)
at emitOne (events.js:116:13)
at ClientRequest.emit (events.js:211:7)
at Socket.socketOnEnd (_http_client.js:423:9)
at emitNone (events.js:111:20)
at Socket.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
(node:7082) 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(). (rejection id: 2)
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (8 by maintainers)
Top Results From Across the Web
node.js - Unhandled Promise Rejection Warning Occured
This error originated either by throwing inside of an async function without a catch block, or by rejecting a p romise which was...
Read more >trace-unhandled | Yarn - Package Manager
trace-unhandled helps with this. It keeps track of promises and when an unhandled promise rejection is logged, the location of both the error...
Read more >Unhandled promise rejection error seen on startup
I get an error while starting and no webcam found error is seen on web page. How to resolve. webcam-transfer-learning$ yarn watch. yarn...
Read more >unhandledpromiserejectionwarni...
Axios - [Unhandled promise rejection: Error: Request failed with status code 404] ... When starting yarn, I get an UnhandledPromiseRejectionWarning.
Read more >Node.js Process unhandledPromiseRejection Event
The unhandledRejection event is emitted whenever a promise rejection is not handled. NodeJS warns the console about ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Dont hesitate to reopen the issue or create a new one if documentation is still confusing.
Docker compose to use is: https://github.com/OpenCTI-Platform/docker/blob/master/docker-compose-dev.yml Code is: https://github.com/OpenCTI-Platform/opencti I currently fixing the documentation