{
  "id": "python/django-url-reverse-args-error",
  "signature": "django.urls.exceptions.NoReverseMatch: Reverse for 'product-detail' with arguments '('',)' not found. 1 pattern(s) tried: ['product/<int:pk>/']",
  "signature_zh": "django.urls.exceptions.NoReverseMatch: 使用参数 '('',)' 反向解析 'product-detail' 未找到。尝试了1个模式：['product/<int:pk>/']",
  "regex": "django\\.urls\\.exceptions\\.NoReverseMatch:\\ Reverse\\ for\\ 'product\\-detail'\\ with\\ arguments\\ '\\('',\\)'\\ not\\ found\\.\\ 1\\ pattern\\(s\\)\\ tried:\\ \\['product/<int:pk>/'\\]",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "Passing an empty string or non-integer as the primary key when using reverse() or {% url %} tag.",
  "root_cause_type": "generic",
  "root_cause_zh": "在使用reverse()或{% url %}标签时传递空字符串或非整数作为主键。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "If pk is empty, it still fails; need to ensure pk is valid integer.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Hides the error and may lead to broken links.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "Check that pk is not None and is an integer: if pk: url = reverse('product-detail', args=[pk])",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Use get_object_or_404 to ensure object exists before reversing.",
      "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.86,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-12-03",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}