metaplex-foundation / js

A JavaScript SDK for interacting with Metaplex's programs
355 stars 182 forks source link

Candy Machine mint throws mint account not found #277

Closed mPaella closed 1 year ago

mPaella commented 2 years ago

This is occurring, seemingly at random, after minting an NFT from a candy machine.

The mint is successful, and the transaction didn't incur a bot tax: https://explorer.solana.com/tx/4DE3suJcv3GyNKrokufpVujYmYtojQVQT8JC8gicksgfwEhXt66d3wq7Y1hBoNgBA1r8u2MgcGb4qVi1yiLrb9LU?cluster=devnet

To me, it looks like the minted NFT is being fetched before the blockchain has updated the account. If that's the case, changing the commitment should help, however when using processed commitment I'm still receiving this error sometimes

The candy machine was created using Sugar CLI about a week ago

image

lorisleiva commented 1 year ago

Hi there, this is due to a delay between the transaction being finalized and the data being available on your RPC node.

See https://github.com/metaplex-foundation/js/issues/344#issuecomment-1325265657