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

unhandledRejectionのログ見てもどこから来たのかわからなすぎる #734

Open
cookie-s opened this issue Sep 17, 2022 · 4 comments

Comments

@cookie-s
Copy link
Member

たすけて

@hakatashi
Copy link
Member

error.stackを出力するようにすると改善しそう

その上でbluebirdを入れると見れるstackが深くなります

@cookie-s
Copy link
Member Author

error.stack、なんか、node_modulesとかしか出てこなくて、slackbot名が出てこなくて、だめやん、っつって #728 で更に上にしちゃったんですよね、、
bluebird、ふむ

@hakatashi
Copy link
Member

globalThis.Promise = require('bluebird');
Promise.config({longStackTraces: true});

こんな感じ

@hakatashi
Copy link
Member

(Error以外がthrowされている場合はどうしようもないけど、今回はそうではなさそう)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants