metaplex-foundation / metaplex

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

Mint Button "not clickable" #1655

Closed Chrissyticky closed 2 years ago

Chrissyticky commented 2 years ago

Minting Error After executing the following command metaplex\js\packages\candy-machine-ui>yarn start

I get the attached error: error

I've tried removing all the dependencies and reinstalling but it hasn't worked. I was using Edge browser but switched to chrome and still, the issue is the same..

My env file is filled out correctly and so is my config file.

Artistic-alpha commented 2 years ago

are you using the latest version of candy-machine-ui?

kevinhicks7 commented 2 years ago

Having the same issue @Chrissyticky

alienking-sol commented 2 years ago

What is your GoLiveDate in configuration?

If it is set to "Null", that's probably why. Try setting a past date (ex. "25 Dec 2021 00:00:00 GMT"), and then run the update command:

ts-node ~/metaplex/js/packages/cli/src/candy-machine-v2-cli.ts update_candy_machine \ -e devnet \ -k ~/.config/solana/devnet.json \ -cp config.json \ -c example

Chrissyticky commented 2 years ago

What is your GoLiveDate in configuration?

If it is set to "Null", that's probably why. Try setting a past date (ex. "25 Dec 2021 00:00:00 GMT"), and then run the update command:

ts-node ~/metaplex/js/packages/cli/src/candy-machine-v2-cli.ts update_candy_machine -e devnet -k ~/.config/solana/devnet.json -cp config.json -c example

error I've done this 15 times already.. still no luck.. I've even restarted the process from scratch and met with the same issue.

Chrissyticky commented 2 years ago

Having the same issue @Chrissyticky

Were you able to resolve it?

Chrissyticky commented 2 years ago

are you using the latest version of candy-machine-ui?

I would assume so.. I downloaded the latest version. I've tried this process multiple times. Still no luck. :(

kevinhicks7 commented 2 years ago

Having the same issue @Chrissyticky

Were you able to resolve it?

No, I also have the mint date set correctly. Still trying to troubleshoot. I also tried removing the gatekeeper and changing to arweave instead of arweave-sol. Neither worked.

kevinhicks7 commented 2 years ago

@Chrissyticky found the error. the .env rpc host needs to be set to REACT_APP_SOLANA_RPC_HOST=https://api.mainnet-beta.solana.com instead of REACT_APP_SOLANA_RPC_HOST=https://explorer-api.mainnet-beta.solana.com

Chrissyticky commented 2 years ago

@Chrissyticky found the error. the .env rpc host needs to be set to REACT_APP_SOLANA_RPC_HOST=https://api.mainnet-beta.solana.com instead of REACT_APP_SOLANA_RPC_HOST=https://explorer-api.mainnet-beta.solana.com

Mine is

REACT_APP_SOLANA_NETWORK=devnet REACT_APP_SOLANA_RPC_HOST=https://api.devnet.solana.com

I'm on devnet.. it didn't work for me :(

Chrissyticky commented 2 years ago

@Chrissyticky found the error. the .env rpc host needs to be set to REACT_APP_SOLANA_RPC_HOST=https://api.mainnet-beta.solana.com instead of REACT_APP_SOLANA_RPC_HOST=https://explorer-api.mainnet-beta.solana.com

@kevinh1534 Have you checked on devnet or had this issue on devnet?

jslopezg commented 2 years ago

I have the exact same problem;... Im on Devnet

margarita26 commented 2 years ago

update REACT_APP_CANDY_MACHINE_ID with candyMachine string from cache devnet-example.json file, and only then run yarn install && yarn start had the same issue, also on devnet, my candy machine instance was undefined looks like yours is as well

BHALEYART commented 2 years ago

I was able to fix this on the local host by changing the RPC_HOST=https://api.mainnet-beta.solana.com also ran an update on CMv2 and new yen build of React App.

But unfortunately about hosting on the web the issue magically returns...

stegaBOB commented 2 years ago

update REACT_APP_CANDY_MACHINE_ID with candyMachine string from cache devnet-example.json file, and only then run yarn install && yarn start had the same issue, also on devnet, my candy machine instance was undefined looks like yours is as well

This is most likely the issue.

jlopezg93 commented 2 years ago

My solution to the mint button not working was that I needed to send the yarn build && yarn start command and after that the mint button worked

victorajayi commented 2 years ago

@BHALEYART you're right as soon as you host the build on a web server the mint button automatically stops working

BHALEYART commented 2 years ago

Ok so this is is RESOLVED:

Do not use Devnet, or Mainnet Api for the RPC section.

My issue: Quiknode RPC I bought wasn't actually working even though it was connected. using solana mainnet endpoint only worked on Local host but would not on vercel.

To fix I used this RPC endpoint: https://ssc-dao.genesysgo.net You only need to save edits to the file and use "yarn build" to fix the issue. New repository push, new vercel deployment and you're good to go.

Other common issues:

-Not using an RPC period. -On the wrong api network (devnet/mainnet). -People forget to remove "< >" and simply put their config from the cache inside the brackets.

Remember if you solve something to come back and tell others or we are part of a vicious cycle.

@victorajayi

alienking-sol commented 2 years ago

I've also only had success using Genesys.go nodes. Best part is, they're free! Really smart guys over at their Discord.