简体   繁体   中英

Cloud function some time throw error The request was aborted because there was no available instance

I using cloud function and some time cloud function throw error message:

The request was aborted because there was no available instance

This situation has increased in recent times. I know that this is a scale instance issue at google. Is there any other way to completely fix this problem?

This error could occur due to two different reasons as mentioned in the troubleshooting

  1. This happens when the Cloud Functions infrastructure is not able to scale up instances fast enough to handle the incoming load.
  2. This happens when you have set a limit for the maximum number of instances and if there are no instances available to handle the incoming request.

To avoid this error either you can redeploy your Cloud Functions in a different region if possible. Also you can implement retries as it is a best practice.

I have also found this Google's issue tracker where the Google team is working on it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM