-
Notifications
You must be signed in to change notification settings - Fork 16
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
'ERR_UNHANDLED_REJECTION' #5
Comments
`import dotenv from "dotenv"; import { toNano } from "ton-core"; import { openWallet } from "./utils"; dotenv.config(); async function init() { const wallet = await openWallet(process.env.MNEMONIC!.split(" "), true); console.log("Started uploading images to IPFS..."); console.log("Started uploading metadata files to IPFS..."); console.log("Start deploy of nft collection..."); // Deploy nft items seqno = await collection.topUpBalance(wallet, files.length); for (const file of files) { console.log("Start deploy of new marketplace "); const nftToSaleAddress = await NftItem.getAddressByIndex(collection.address, 0); await NftItem.transfer(wallet, nftToSaleAddress, nftSaleContract.address); void init();` |
Hello, I just started learning programming, please tell me what the problem is?
MintyTON % yarn start
yarn run v1.22.19
$ tsc --skipLibCheck && node dist/app.js
Started uploading images to IPFS...
node:internal/process/promises:289
triggerUncaughtException(err, true /* fromPromise */);
^
[UnhandledPromiseRejection: 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(). The promise rejected with the reason "#".] {
code: 'ERR_UNHANDLED_REJECTION'
}
Node.js v20.5.1
error Command failed with exit code 1.
The text was updated successfully, but these errors were encountered: