{
  "id": "python/pip-index-url-not-trusted",
  "signature": "WARNING: The repository located at example.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with '--trusted-host example.com'.",
  "signature_zh": "警告：位于 example.com 的仓库不是受信任或安全的主机，已被忽略。如果此仓库可通过 HTTPS 访问，我们建议您改用 HTTPS，否则您可以使用 '--trusted-host example.com' 消除此警告并允许它。",
  "regex": "WARNING:\\ The\\ repository\\ located\\ at\\ example\\.com\\ is\\ not\\ a\\ trusted\\ or\\ secure\\ host\\ and\\ is\\ being\\ ignored\\.\\ If\\ this\\ repository\\ is\\ available\\ via\\ HTTPS\\ we\\ recommend\\ you\\ use\\ HTTPS\\ instead,\\ otherwise\\ you\\ may\\ silence\\ this\\ warning\\ and\\ allow\\ it\\ anyway\\ with\\ '\\-\\-trusted\\-host\\ example\\.com'\\.",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "pip is configured to use an HTTP index URL, which is insecure and ignored by default.",
  "root_cause_type": "generic",
  "root_cause_zh": "pip 配置为使用 HTTP 索引 URL，这是不安全的，默认会被忽略。",
  "versions": [
    {
      "version": "3.8",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.9",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.10",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.11",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.12",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "The index is ignored, so packages won't be found.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Security risk; may still be blocked by network policies.",
      "fail_rate": 0.4,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "Use HTTPS for the index URL: `pip install -i https://example.com/simple foo`.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.8,
      "how": "If HTTP is unavoidable, add `--trusted-host example.com` to the pip command or config.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.88,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-05-05",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}