{"record":{"id":"b658d7f63e021d1a","repo":"github/spec-kit","slug":"invalid-catalog-entry-at-index-idx-in-config-pa-b658d7","errorCode":null,"errorMessage":"Invalid catalog entry at index {idx} in {config_path}: 'priority' must be an integer, got {type(raw_priority).__name__}.","messagePattern":"Invalid catalog entry at index (.+?) in (.+?): 'priority' must be an integer, got (.+?)\\.","errorType":"validation","errorClass":"IntegrationValidationError","httpStatus":null,"severity":"error","filePath":"src/specify_cli/integrations/catalog.py","lineNumber":462,"sourceCode":"            if not existing_url:\n                continue\n            # Re-run the same URL validation used when loading, so a corrupt\n            # entry surfaces here instead of at the next `integration` call.\n            try:\n                self._validate_catalog_url(existing_url)\n            except IntegrationCatalogError as exc:\n                raise IntegrationValidationError(\n                    f\"Invalid catalog entry at index {idx} in {config_path}: {exc}\"\n                ) from exc\n            if existing_url == url:\n                raise IntegrationValidationError(\n                    f\"Catalog URL already configured: {url}\"\n                )\n            valid_catalog_count += 1\n            if \"priority\" in cat:\n                raw_priority = cat.get(\"priority\")\n                if isinstance(raw_priority, bool):\n                    raise IntegrationValidationError(\n                        f\"Invalid catalog entry at index {idx} in {config_path}: \"\n                        f\"'priority' must be an integer, got \"\n                        f\"{type(raw_priority).__name__}.\"\n                    )\n                try:\n                    normalized_priority = int(raw_priority)\n                except (TypeError, ValueError, OverflowError):\n                    # OverflowError: int(float(\"inf\")) — a ``priority: .inf``.\n                    raise IntegrationValidationError(\n                        f\"Invalid catalog entry at index {idx} in {config_path}: \"\n                        f\"'priority' must be an integer, got \"\n                        f\"{raw_priority!r}.\"\n                    ) from None\n                existing_priorities.append(normalized_priority)\n            else:\n                # Match `_load_catalog_config()`'s defaulting rule so the new\n                # entry still sorts after implicit-priority siblings.\n                existing_priorities.append(idx + 1)","sourceCodeStart":444,"sourceCodeEnd":480,"githubUrl":"https://github.com/github/spec-kit/blob/bf88c9f9a82fa370c7a7257aa2b3cf10b457b65c/src/specify_cli/integrations/catalog.py#L444-L480","documentation":"Error \"Invalid catalog entry at index {idx} in {config_path}: 'priority' must be an integer, got {type(raw_priority).__name__}.\" thrown in github/spec-kit.","triggerScenarios":"Thrown at src/specify_cli/integrations/catalog.py:462 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set the catalog entry 'priority' to an integer in the config file."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"bf88c9f9a82fa370c7a7257aa2b3cf10b457b65c","analyzedAt":"2026-08-14T19:43:37.150Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}