metaplex-foundation / metaplex

A directory of what the Metaplex Foundation works on!
https://metaplex.com
Apache License 2.0
3.31k stars 6.27k forks source link

[Bug]: Mint button Grayed Out #1905

Closed ThePanthersClub closed 2 years ago

ThePanthersClub commented 2 years ago

Which package is this bug report for?

candy machine ui

Issue description

Did everything as usual but mid-way in the project encountered an error that had me trying to withdraw candy machine. It didn't work. Eventually was able to upload the NFTs but with the same candy machine ID. Ran the verify command and it worked. When I build or use localhost the mint button is greyed out with the error.

error Error: Account does not exist at AccountClient.fetch (vendors~main.chunk.js:69796:13) at async getCandyMachineState (main.chunk.js:1512:17) at async main.chunk.js:644:22 I have confirmed that this is the candy machine id present in my cache file. It is also present when I run the show command. Please can anyone help me with this

Command

No response

Relevant log output

There was a problem fetching Candy Machine state
Error: Account does not exist
at AccountClient.fetch (vendors~main.chunk.js:69796:13)
at async getCandyMachineState (main.chunk.js:1512:17)
at async main.chunk.js:644:22
I have confirmed that this is the candy machine id present in my cache file. It is also present when I run the show command.
Please can anyone help me with this

Operating system

Windows 10

Priority this issue should have

Medium (should be fixed soon)

Check the Docs First

merlox commented 2 years ago

Two possible cases:

stegaBOB commented 2 years ago

Also you have to use a custom RPC as well if you aren't doing so already.

ThePanthersClub commented 2 years ago

Also you have to use a custom RPC as well if you aren't doing so already.

Is there any of this you recommend? I am using the default mainnet-beta. Have you ever run into a similar problem before while using it?

ThePanthersClub commented 2 years ago

Two possible cases:

  • Make sure you rename .env.example to .env. Then make sure you have the RIGHT candy machine smart contract ID. You can see it in the .cache folder.
  • It could be because in the config.json (or however you called it) you've setup a wrong goLiveDate. If you set it to null or something like that it won't work. I recommend you do Date.now() in the chrome dev tools and use that timestamp there. Remember null will result in a grayed out mint button

I correctly set the date settings, I know it sound stupid but is this my candy machine id? { "program": { "uuid": "6JQs2i", "candyMachine": "redacted" },....

stegaBOB commented 2 years ago

https://docs.metaplex.com/candy-machine-v2/mint-frontend