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

invalid json response body #1

Closed
Terkea opened this issue Dec 12, 2021 · 9 comments
Closed

invalid json response body #1

Terkea opened this issue Dec 12, 2021 · 9 comments

Comments

@Terkea
Copy link

Terkea commented Dec 12, 2021

Hi there,
I was just trying to follow along with the tutorial you've made but every time I try to upload the files to the IPFS I get this error.

FetchError: invalid json response body at https://api.nftport.xyz/v0/files reason: Unexpected token < in JSON at position 0
    at /mnt/c/Users/terke/Desktop/work/degenerate-pixels/node_modules/node-fetch/lib/index.js:273:32
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5) {
  type: 'invalid-json'
}
@codeSTACKr
Copy link
Owner

It looks like you are sending invalid json to the server. Be sure to double check that your code matches the examples.

@Mustache1
Copy link

Hello,

I keep getting this message after I run node utils/nftport/uploadFiles.js.

error:FetchError: invalid json response body at https://api.nftport.xyz/v0/files reason: Unexpected token < in JSON at position 1

@Merc616
Copy link

Merc616 commented Feb 5, 2022

bump

@Gitisgit
Copy link

Gitisgit commented Feb 6, 2022

same here

@Terkea
Copy link
Author

Terkea commented Feb 6, 2022

the problem comes from their API which cant handle all the requests at the same time.

this can be fixed by adding a delay in between the requests.

@StartUpDream
Copy link

How do you add a delay?

@GangSti1e
Copy link

I have got the same problem. Any fix?

@naadis
Copy link

naadis commented Feb 28, 2022

Same problem here. Any one got a solution?

@NAXIG
Copy link

NAXIG commented Mar 1, 2022

i Have the same error. what can i do?

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

9 participants