You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(node:3444473) UnhandledPromiseRejectionWarning: ServerError: ServerError
at Job._track (./node_modules/@automationcloud/client/out/main/job.js:359:31)
-> ./node_modules/@automationcloud/client/src/main/job.ts:387:31
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at emitUnhandledRejectionWarning (internal/process/promises.js:168:15)
at processPromiseRejections (internal/process/promises.js:247:11)
at processTicksAndRejections (internal/process/task_queues.js:94:32)
(node:3444473) ServerError: ServerError
at Job._track (./node_modules/@automationcloud/client/out/main/job.js:359:31)
-> ./node_modules/@automationcloud/client/src/main/job.ts:387:31
at processTicksAndRejections (internal/process/task_queues.js:93:5)
(node:3444473) [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.
at emitDeprecationWarning (internal/process/promises.js:180:11)
at processPromiseRejections (internal/process/promises.js:249:13)
at processTicksAndRejections (internal/process/task_queues.js:94:32)
The text was updated successfully, but these errors were encountered:
TobiaszCudnik
changed the title
UnhandledPromiseRejectionWarning within a try-catch clause
UnhandledPromiseRejectionWarning for ServerError
Jan 19, 2021
Even when everything is wrapped in a try-catch clause, in case of a request error (eg ServerError), one will get an UnhandledPromiseRejectionWarning.
Reproduction:
Result:
The text was updated successfully, but these errors were encountered: