The full error message: FunctionError: this service was recently updated, so it may take several minutes until the cluster can be connected to. Error: error resolving cluster hostname.
In the function, we try and get the service as follows: context.services.get(“database”).db(db_name);
It does not resolve itself after waiting even a couple of hours.