{
  "id": "python/sqlalchemy-exc-argument-error-unknown-dialect",
  "signature": "sqlalchemy.exc.ArgumentError: Could not parse rfc1738 URL from string 'postgresql://user:pass@localhost/db'",
  "signature_zh": "无法从字符串 'postgresql://user:pass@localhost/db' 解析 rfc1738 URL",
  "regex": "sqlalchemy\\.exc\\.ArgumentError:\\ Could\\ not\\ parse\\ rfc1738\\ URL\\ from\\ string\\ 'postgresql://user:pass@localhost/db'",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "The database URL provided to create_engine() is malformed or missing required components like driver or host.",
  "root_cause_type": "generic",
  "root_cause_zh": "提供给 create_engine() 的数据库 URL 格式错误或缺少必需组件（如驱动或主机）。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Adding extra slashes",
      "why_fails": "",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "Using wrong driver name",
      "why_fails": "",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Correct URL format with driver",
      "success_rate": 0.95,
      "how": "Use the correct format: 'postgresql+psycopg2://user:pass@localhost:5432/dbname'",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use connect_args dictionary",
      "success_rate": 0.85,
      "how": "Use a dictionary for connection parameters instead of URL, e.g., create_engine('postgresql+psycopg2://', connect_args={'host': 'localhost'})",
      "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.82,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-06-18",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}