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

UnhandledPromiseRejectionWarning #24

Open
ianzone opened this issue Jan 13, 2022 · 0 comments
Open

UnhandledPromiseRejectionWarning #24

ianzone opened this issue Jan 13, 2022 · 0 comments

Comments

@ianzone
Copy link

ianzone commented Jan 13, 2022

(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 [email protected]. I got this error log after successful deployment.

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