@arkkitehti_taneli

Как пофиксить ошибку UnhandledPromiseRejectionWarning в node js?

при запуске примера в node.js с сайта https://ton.org/docs/#/payment-processing/common возникает ошибка; текст ошибки ниже, как можно ее пофиксить?
текст

(node:61749) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'getRandomValues' of undefined
at Module.generateMnemonic (/var/www/html/node_modules/tonweb-mnemonic/dist/node/index.js:174:29)
at example (/var/www/html/test_ton.js:8:40)
at Object. (/var/www/html/test_ton.js:35:1)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at startup (internal/bootstrap/node.js:283:19)
(node:61749) 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)
(node:61749) [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.
  • Вопрос задан
  • 123 просмотра
Пригласить эксперта
Ответы на вопрос 1
Alexandroppolus
@Alexandroppolus
кодир
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы