{
  "id": "python/flask-blueprint-registration-error",
  "signature": "AssertionError: Blueprint 'auth' is already registered",
  "signature_zh": "断言错误：蓝图 'auth' 已经注册",
  "regex": "AssertionError:\\ Blueprint\\ 'auth'\\ is\\ already\\ registered",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "The same Blueprint object is registered multiple times with the app.",
  "root_cause_type": "generic",
  "root_cause_zh": "同一个蓝图对象被多次注册到应用程序。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Registering the blueprint again with a different name.",
      "why_fails": "The Blueprint object itself is already registered; a new instance is needed.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "Ignoring the error and continuing.",
      "why_fails": "The app will not start correctly.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Ensure the blueprint is registered only once.",
      "success_rate": 0.95,
      "how": "app.register_blueprint(auth_bp)  # Call once",
      "condition": "",
      "sources": []
    },
    {
      "action": "Create a new Blueprint instance for each registration if needed.",
      "success_rate": 0.85,
      "how": "auth_bp2 = Blueprint('auth2', __name__)\napp.register_blueprint(auth_bp2)",
      "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.85,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-10-01",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}