The request was aborted because there was no available instance.
Getting this error. I have Max Instances set to 1000, and this is way below my quota limits. I see the graphs peaking around 65 concurrent instances, but its still failing. Anyone have any advice?
It may have more information about your issue. There, you’re saying that you have set your Max Instance to 1000, which is indeed fine. You also say that it’s below your quota limit, but are you sure about that? Depending on the CPU / RAM your project is allowing per region, you may exceed that limit. This is pure speculation as, I think, there isn’t much information here to troubleshoot, just guesses.
Talking about guesses :
Check Log Explorer (always):
see if you have 429 errors and/or QUOTA warnings/errors
see if you’re not DDoSing your Cloud Run / function yourself, making the whole code explode, and making it impossible to take more requests
Check your Cloud Run to see how many concurrent requests the Cloud Run itself can take; depending on the CPU / RAM, you may have to increase or decrease those parameters
Once again, if you have a clear message that there were no more available instances, I would instantly think about a (region) quota that got reached. You may be interested in looking at the Quotas Page while you’re having the issue to be sure that no quotas are being reached.