algokittens / algoNFTs

40 stars 17 forks source link

Config_mint.py Won't work: " KeyError: 'IpfsHash' " #11

Closed bigtoadsnft closed 2 years ago

bigtoadsnft commented 2 years ago

Hey, was batch minting a collection- was minting fine up to #641 and then an error occurred. Attached is the error I'm seeing. DISCLAIMER: The x's are there to replace my info.

File "/Users/xxx(folder info)xxxx/Downloads/hashlips_art_engine-1.0.7_update/Python Scrips 12:26:21/config_mint.py", line 35, in mint_asset (n, unit_name, asset_name, mnemonic1, image_path, meta_path, meta_type, api_key, api_secret, external_url, description, testnet=testnet) File "/Users/xxx(folder info)xxx/Downloads/hashlips_art_engine-1.0.7_update/Python Scrips 12:26:21/mint_arc69.py", line 32, in mint_asset ipfs_cid = meta['IpfsHash'] KeyError: 'IpfsHash' (base) xxxx-MacBook-Air:hashlips_art_engine-1.0.7_update xxxxxxx$

algokittens commented 2 years ago

The error above turned out to be an issue with pinata storage after some back and forth through DMs. I have now added a check for storage space to the script: https://github.com/algokittens/algoNFTs/commit/c034f9c92ed0063d41153e35f7139ae2f6b36e6c