{
  "id": "dotnet/grpc-unavailable-connection-reset",
  "signature": "Grpc.Core.RpcException: Status(StatusCode=\"Unavailable\", Detail=\"failed to connect to all addresses; last error: UNKNOWN: Connection reset\")",
  "signature_zh": "Grpc.Core.RpcException: Status(StatusCode=\"Unavailable\", Detail=\"连接到所有地址失败；最后错误：UNKNOWN：连接重置\")",
  "regex": "Grpc\\.Core\\.RpcException.*StatusCode=\"Unavailable\".*Connection reset",
  "domain": "dotnet",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "gRPC client cannot establish or maintain a connection to the server, often due to server unavailability, network issues, or TLS configuration mismatches.",
  "root_cause_type": "generic",
  "root_cause_zh": "gRPC 客户端无法建立或维持与服务器的连接，通常由服务器不可用、网络问题或 TLS 配置不匹配引起。",
  "versions": [
    {
      "version": "dotnet 6.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "dotnet 8.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Grpc.Core 2.46",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Grpc.Net.Client 2.60",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "gRPC requires secure connections in production; disabling TLS can cause security warnings or failures if server enforces HTTPS.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Retries will continue to fail if the server is down or firewall blocks the port.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Does not fix the connection issue; just delays the timeout error.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Verify server health and network connectivity. Use tools like grpcurl to test the endpoint. Example: grpcurl -insecure <server>:<port> list.",
      "success_rate": 0.9,
      "how": "Verify server health and network connectivity. Use tools like grpcurl to test the endpoint. Example: grpcurl -insecure <server>:<port> list.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Ensure TLS certificates are valid and trusted. If using self-signed certs in dev, set GrpcChannelOptions.HttpHandler to bypass validation.",
      "success_rate": 0.85,
      "how": "Ensure TLS certificates are valid and trusted. If using self-signed certs in dev, set GrpcChannelOptions.HttpHandler to bypass validation.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Check firewall and load balancer settings to ensure gRPC port (usually 5001) is open and HTTP/2 is supported.",
      "success_rate": 0.8,
      "how": "Check firewall and load balancer settings to ensure gRPC port (usually 5001) is open and HTTP/2 is supported.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Verify server health and network connectivity. Use tools like grpcurl to test the endpoint. Example: grpcurl -insecure <server>:<port> list.",
    "Ensure TLS certificates are valid and trusted. If using self-signed certs in dev, set GrpcChannelOptions.HttpHandler to bypass validation.",
    "Check firewall and load balancer settings to ensure gRPC port (usually 5001) is open and HTTP/2 is supported."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://learn.microsoft.com/en-us/aspnet/core/grpc/troubleshoot?view=aspnetcore-8.0#connection-reset",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.82,
  "resolvable": "true",
  "first_seen": "2023-03-10",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}