{
  "id": "terraform/terraform-provider-registry-timeout",
  "signature": "Error: Failed to query available provider packages: could not retrieve the list of available versions for provider hashicorp/aws: request timed out after 30 seconds",
  "signature_zh": "错误：查询可用提供程序包失败：无法获取 hashicorp/aws 提供程序的可用版本列表：请求在 30 秒后超时",
  "regex": "Failed to query available provider packages: could not retrieve the list of available versions for provider",
  "domain": "terraform",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "Network connectivity issue or registry server timeout prevents Terraform from fetching provider versions from the registry.",
  "root_cause_type": "generic",
  "root_cause_zh": "网络连接问题或注册表服务器超时，导致 Terraform 无法从注册表获取提供程序版本。",
  "versions": [
    {
      "version": "Terraform v1.5",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Terraform v1.6",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Terraform v1.7",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Terraform v1.8",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Debug logging does not resolve network timeouts; it only adds verbosity without addressing the root cause.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Without a local mirror, Terraform cannot find any providers, leading to a different error about missing providers.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Provider blocks do not have a timeout attribute for registry queries; this is a client-side setting.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Set the environment variable 'TF_REGISTRY_CLIENT_TIMEOUT' to a higher value, e.g., 60 seconds, and rerun 'terraform init'.",
      "success_rate": 0.7,
      "how": "Set the environment variable 'TF_REGISTRY_CLIENT_TIMEOUT' to a higher value, e.g., 60 seconds, and rerun 'terraform init'.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use a local provider mirror by configuring 'provider_installation' in .terraformrc to use a filesystem mirror or network mirror.",
      "success_rate": 0.9,
      "how": "Use a local provider mirror by configuring 'provider_installation' in .terraformrc to use a filesystem mirror or network mirror.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Set the environment variable 'TF_REGISTRY_CLIENT_TIMEOUT' to a higher value, e.g., 60 seconds, and rerun 'terraform init'.",
    "Use a local provider mirror by configuring 'provider_installation' in .terraformrc to use a filesystem mirror or network mirror."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://developer.hashicorp.com/terraform/cli/config/environment-variables#TF_REGISTRY_CLIENT_TIMEOUT",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2023-10-01",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}