{
  "id": "python/flask-blueprint-name-conflict",
  "signature": "AssertionError: A blueprint's name collision occurred between <Blueprint 'api'> and <Blueprint 'api'>. Either specify a unique name or register them under different prefixes.",
  "signature_zh": "断言错误：蓝图名称冲突，两个名为 'api' 的蓝图被注册。",
  "regex": "AssertionError:\\ A\\ blueprint's\\ name\\ collision\\ occurred\\ between\\ <Blueprint\\ 'api'>\\ and\\ <Blueprint\\ 'api'>\\.\\ Either\\ specify\\ a\\ unique\\ name\\ or\\ register\\ them\\ under\\ different\\ prefixes\\.",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "Two Blueprint objects with the same name are registered on the same app, or a blueprint is registered twice.",
  "root_cause_type": "generic",
  "root_cause_zh": "两个同名 Blueprint 对象注册到同一个 app，或同一蓝图被注册两次。",
  "versions": [
    {
      "version": "2.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Name still collides; url_prefix does not change the blueprint name.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Second blueprint's routes are silently dropped.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "Give unique names: `api_v1 = Blueprint('api_v1', __name__)` and `api_v2 = Blueprint('api_v2', __name__)`.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Register with a prefix: `app.register_blueprint(api, url_prefix='/v1')` and ensure names differ.",
      "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": "2025-07-30",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}