serverless-components / aws-dynamodb

⚡ Easily provision AWS DynamoDB tables using Serverless Components.
https://www.serverless.com
Apache License 2.0
58 stars 11 forks source link

UnhandledPromiseRejectionWarning #24

Open ianzone opened 2 years ago

ianzone commented 2 years ago

(node:16576) UnhandledPromiseRejectionWarning: Error: Unexpected Serverless Platform Streaming Error: WebSocket was closed before the connection was established at WebSocket.self.connection.onerror (/usr/local/lib/node_modules/serverless/node_modules/@serverless/platform-client/src/Connection.js:106:13) at WebSocket.onError (/usr/local/lib/node_modules/serverless/node_modules/ws/lib/event-target.js:140:16) at WebSocket.emit (events.js:400:28) at abortHandshake (/usr/local/lib/node_modules/serverless/node_modules/ws/lib/websocket.js:896:15) at WebSocket.close (/usr/local/lib/node_modules/serverless/node_modules/ws/lib/websocket.js:272:14) at Connection.disconnect (/usr/local/lib/node_modules/serverless/node_modules/@serverless/platform-client/src/Connection.js:165:23) at ServerlessSDK.disconnect (/usr/local/lib/node_modules/serverless/node_modules/@serverless/platform-client/src/index.js:1539:23) at Object.module.exports [as run] (/usr/local/lib/node_modules/serverless/node_modules/@serverless/components/src/cli/commands/run.js:194:9) at processTicksAndRejections (internal/process/task_queues.js:95:5) at async Object.module.exports (/usr/local/lib/node_modules/serverless/node_modules/@serverless/components/src/cli/index.js:197:7) (Use node --trace-warnings ... to show where the warning was created) (node:16576) 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: 1) (node:16576) [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.

 Operating System:          linux
 Node Version:              14.18.3
 Framework Version:         2.71.0
 Plugin Version:            5.5.3
 SDK Version:               4.3.0
 Components Version:        3.18.1

I'm using aws-dynamodb@1.1.3. I got this error log after successful deployment.