create-10k-nft-collection icon indicating copy to clipboard operation
create-10k-nft-collection copied to clipboard

Inalid json response body at..... unexpected token< in json at position 1[Bug]:

Open Merc616 opened this issue 3 years ago • 3 comments

Version

  • [X] Yes

General Question

  • [X] No

What happened?

When running the none utils/nftport/uploadFiles.js i get hit with this error Invalid json response body at..... unexpected token< in json at position 1.

What have you tried?

I Googled and asked the community in the discord server but could not find a solution. Surfed everywhere for an answer and yet to actually find a solution even went all the way through the discord.. nothing. Latest version used and pretty sure my code is pitch perfect per tutorial. Please Find attached code for uploadFiles.js Untitled design (19)

Relevant log output

No response

Protect your information

  • [X] I Agree

Merc616 avatar Feb 05 '22 20:02 Merc616

Hello there, I am getting the same error, I tried to google for a solution and spent a lot of time on reviewing my code and I am sure my code matches the code from tutorial

EDIT I found out that there was an issue with paths, for some reason ${} command (Im not sure if 'command' is a correct word here but I hope You get my point) didn't work as expected, even though it was working during pictures generating phase. Code worked if I put paths for each file separately. I downloaded current source code instead of using a source code from the tutorial, I adjusted it a bit and it is working now.

Gitisgit avatar Feb 06 '22 15:02 Gitisgit

Hi, can you please show us how did you solve your problem? cause i have near the same problem and i cant find how to fix it.

Mugzy1 avatar Feb 11 '22 10:02 Mugzy1

Hi, you can try my repo as well. I added support for blank specifically or any blank keyword.

https://github.com/thepeanutgalleryandco/create-and-mint-nft-collection

thepeanutgalleryandco avatar Feb 18 '22 18:02 thepeanutgalleryandco