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

Arweave upload fails randomly #58

Open
smacrineanu opened this issue Nov 17, 2022 · 0 comments
Open

Arweave upload fails randomly #58

smacrineanu opened this issue Nov 17, 2022 · 0 comments

Comments

@smacrineanu
Copy link

When I'm creating a collection using the Arweave storage, every once in a while it fails with this error:

uploading file: /mnt/c/Users/user/Documents/nft-assets/images/147.png of format: png
Traceback (most recent call last):
  File "cli.py", line 20, in <module>
    candy_machine.create()
  File "/mnt/c/Dev/AptosNFTMint/script/src/candy_machine.py", line 127, in create
    if not util.uploadFolder():
  File "/mnt/c/Dev/AptosNFTMint/script/src/util.py", line 300, in uploadFolder
    elif _STORAGE_SOLUTION == "arweave": return uploadFolderToArweave()
  File "/mnt/c/Dev/AptosNFTMint/script/src/util.py", line 277, in uploadFolderToArweave
    tx.sign()
  File "/home/user/.local/lib/python3.8/site-packages/arweave/arweave_lib.py", line 192, in sign
    data_to_sign = self.get_signature_data()
  File "/home/user/.local/lib/python3.8/site-packages/arweave/arweave_lib.py", line 204, in get_signature_data
    self.reward = self.get_reward(self.data_size, target_address=self.target if len(self.target) > 0 else None)
  File "/home/user/.local/lib/python3.8/site-packages/arweave/arweave_lib.py", line 178, in get_reward
    return reward
UnboundLocalError: local variable 'reward' referenced before assignment
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