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

UnhandledPromiseRejectionWarning: Error: Couldn't load image #24

Open
oswinkil-git opened this issue Sep 27, 2021 · 9 comments
Open

UnhandledPromiseRejectionWarning: Error: Couldn't load image #24

oswinkil-git opened this issue Sep 27, 2021 · 9 comments

Comments

@oswinkil-git
Copy link

cmd_TC31jGqxzk

this error pops up every time I attempt to generate metadata.

@Julian2leiria
Copy link

Same error too, after generate thr NFT... "Couldn't load image" then the Metadata file don't generate...
With 2 files it's ok but with 2000 or 10000... nop...

@Julian2leiria
Copy link

" Known issues:
Some special characters may resolve in some "File couldnt be loaded" errors. Try to remove any special characters from your file paths to resolve "...

@yrik
Copy link
Contributor

yrik commented Sep 30, 2021

⠹ Generating images/Users/yura/.nvm/versions/node/v16.8.0/lib/node_modules/nft-art-generator/node_modules/merge-images/dist/index.umd.js:39
			img.onerror = function () { return reject(new Error('Couldn\'t load image: ' + source + ', ' + JSON.stringify(sources))); };
			                                          ^

Error: Couldn't load image: [object Object], ["/Users/yura/cryptosnailsart/images/1-body/snailsalat.png","/Users/yura/cryptosnailsart/images/2-shell/undefined","/Users/yura/cryptosnailsart/images/3-vip/king.png","/Users/yura/cryptosnailsart/images/4-eyes/simple.png","/Users/yura/cryptosnailsart/images/5-emotion/crazysmile.png"]
    at img.onerror (/Users/yura/.nvm/versions/node/v16.8.0/lib/node_modules/nft-art-generator/node_modules/merge-images/dist/index.umd.js:39:46)
    at Image.<anonymous> (<anonymous>)
    at setSource (/Users/yura/.nvm/versions/node/v16.8.0/lib/node_modules/nft-art-generator/node_modules/canvas/lib/image.js:91:13)
    at Image.set (/Users/yura/.nvm/versions/node/v16.8.0/lib/node_modules/nft-art-generator/node_modules/canvas/lib/image.js:62:9)
    at /Users/yura/.nvm/versions/node/v16.8.0/lib/node_modules/nft-art-generator/node_modules/merge-images/dist/index.umd.js:41:12
    at new Promise (<anonymous>)
    at /Users/yura/.nvm/versions/node/v16.8.0/lib/node_modules/nft-art-generator/node_modules/merge-images/dist/index.umd.js:30:55
    at Array.map (<anonymous>)
    at /Users/yura/.nvm/versions/node/v16.8.0/lib/node_modules/nft-art-generator/node_modules/merge-images/dist/index.umd.js:30:24

it get's undefined as a path somehow

@Julian2leiria
Copy link

Hello,
Finally I do every part without 'space' or 'special letter' and everything is complete!

  • 2000 Images
  • metadata.json
    ...
    TY

@yrik
Copy link
Contributor

yrik commented Sep 30, 2021

for me it fails on 9996

yrik added a commit to yrik/nft-art-generator that referenced this issue Sep 30, 2021
@Colnnn
Copy link

Colnnn commented Oct 21, 2021

for me it fails on 9996

I'm still unable to get this to work, have removed all spaces and special chars, but always seem to be getting the same error.
Images do generate but I can't seem to see the metadata.

@Colnnn
Copy link

Colnnn commented Oct 21, 2021

Hello, Finally I do every part without 'space' or 'special letter' and everything is complete!

  • 2000 Images
  • metadata.json
    ...
    TY

Hi, may i check how many traits are you using to create 2000 images, can't seem to get mine to work

NotLuksus added a commit that referenced this issue Oct 26, 2021
@kleozzy
Copy link

kleozzy commented Nov 14, 2021

Tried no spaces , no tags nothing I still get the couldn't load images error

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

6 participants
@yrik @kleozzy @Colnnn @oswinkil-git @Julian2leiria and others