_get_service_endpoint requires a context