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 #419

Closed
amper43 opened this Issue Feb 14, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@amper43
Copy link
Contributor

amper43 commented Feb 14, 2019

Error

(node:27073) UnhandledPromiseRejectionWarning: Analytics is not ready
warning.js:18
(node:27073) 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)
warning.js:18
(node:27073) [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.

Method

analytic_sevice.ts: sendTask

this rejection will newer catch:
https://github.com/hastic/hastic-server/blob/master/server/src/services/analytics_service.ts#L32

@amper43 amper43 self-assigned this Feb 14, 2019

@rozetko rozetko closed this in #438 Feb 26, 2019

rozetko added a commit that referenced this issue Feb 26, 2019

Minor server fixes (#438)
* Disable webhook: TypeError: Cannot read property 'toString' of undefined #415
* UnhandledPromiseRejectionWarning #419
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.