I’m on the Infura free tier and I’m using it to test out the setup of my NFT project. I have a script that uploads my photos and metadata to IPFS using the Infura API endpoint, and I often receive a “too many requests” error after about 5-6 requests.
Please keep in mind that making IPFS API calls without project authentication limits you to 12 write requests/minute, and content retrieval is possible at 10 requests/second. Check out more details about this here.
Using authenticated requests, these rate limits can be increased to 10 requests/second for writing and 100 requests/second for reading.
All of my requests are authorized as basic and with my project ID and secret. Based on my console logs I don’t believe my script could be exceeding 10 per second. Perhaps I will add a wait for 1-2 seconds between each NFT upload and see if it eliminates the problem.
If I handle the error within my script, is it possible I could get blocked from the API for receiving too many of these errors?