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

Not enough funds ERROR while uploading image to arweave with metaplexFile uploadMetadata #2298

Open
Fabriciogtr opened this issue May 18, 2023 · 0 comments

Comments

@Fabriciogtr
Copy link

Fabriciogtr commented May 18, 2023

2023-05-18T17:18:34.488Z Error: Not enough funds to send data
at ChunkingUploader.runUpload (/home/ubuntu/api/node_modules/@bundlr-network/client/build/common/chunkingUploader.js:241:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async NodeUploader.upload (/home/ubuntu/api/node_modules/@bundlr-network/client/build/common/upload.js:36:16)
at async /home/ubuntu/api/node_modules/@metaplex-foundation/js/dist/cjs/plugins/bundlrStorage/BundlrStorageDriver.cjs:88:11
at async Promise.all (index 1)
at async BundlrStorageDriver.uploadAll (/home/ubuntu/api/node_modules/@metaplex-foundation/js/dist/cjs/plugins/bundlrStorage/BundlrStorageDriver.cjs:96:12)
at async Object.handle (/home/ubuntu/api/node_modules/@metaplex-foundation/js/dist/cjs/plugins/nftModule/operations/uploadMetadata.cjs:51:23)
at async Disposable.run (/home/ubuntu/api/node_modules/@metaplex-foundation/js/dist/cjs/utils/Disposable.cjs:26:14)
at async Object.create [as mintAndTransferNft] (/home/ubuntu/api/solana/mint_and_transfer_nft.js:37:20)
at async /home/ubuntu/api/app/solana/mint_and_transfer_nft_after_purchase.js:3:23

Somo images fail while others dont, cannot find the reason why, could i get some help?

const imageBuffer = Buffer.from(params.nft.imageConfig.base64, 'base64');
const file = toMetaplexFile(imageBuffer, params.nft.imageConfig.name);
const upload = await nftsModule.uploadMetadata({
name: params.nft.title,
description: params.nft.description,
image: file,
symbol: params.project.symbol,
seller_fee_basis_points: 500,
external_url: params.project.website
attributes: params.nft.attributes,
properties: {
category: "image",
files: [
{
uri: file,
type: "image/png"
}
],
creators: [
{
address: params.project.address,
share: 100
}
]
}
});

EDIT: This error happens on devnet and the account that is issuing the nft has at least 15 solana. Havent tried this in mainnet

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

No branches or pull requests

1 participant