Wiki(ウィキ)内検索結果
タグ検索でweb3は1件見つかりました。
Unhandled promise rejection 対策
web3 使ってコントラクトのファンクションを『send』処理したあとに 『UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Can't set headers after they are sent.』 がでる。 原因を調べてみると、各、".on()"の処理後に、 res.send("xxxx") と終了処理していたが、これではきっちり処理が終了しないらしく、 return …
https://youlearn.memo.wiki/d/Unhandled%20promise%2... - 2019年03月25日更新