{"record":{"id":"ec760aab910b0c56","repo":"MemPalace/mempalace","slug":"unknown-source-adapter-name-r-available-avail","errorCode":null,"errorMessage":"unknown source adapter {name!r}; available: {available_adapters()}","messagePattern":"unknown source adapter (.+?); available: (.+?)","errorType":"exception","errorClass":"KeyError","httpStatus":null,"severity":"error","filePath":"mempalace/sources/registry.py","lineNumber":108,"sourceCode":"                )\n                continue\n            _registry.setdefault(ep.name, cls)\n        _discovered = True\n\n\ndef available_adapters() -> list[str]:\n    \"\"\"Return sorted list of all registered adapter names.\"\"\"\n    _discover_entry_points()\n    return sorted(_registry.keys())\n\n\ndef get_adapter_class(name: str) -> Type[BaseSourceAdapter]:\n    \"\"\"Return the registered adapter class for ``name``.\"\"\"\n    _discover_entry_points()\n    try:\n        return _registry[name]\n    except KeyError as e:\n        raise KeyError(f\"unknown source adapter {name!r}; available: {available_adapters()}\") from e\n\n\ndef get_adapter(name: str) -> BaseSourceAdapter:\n    \"\"\"Return a long-lived instance of the named adapter.\n\n    Instances are cached per-name; repeated calls return the same object.\n    Call :func:`reset_adapters` in tests that need isolation.\n    \"\"\"\n    _discover_entry_points()\n    with _lock:\n        inst = _instances.get(name)\n        if inst is not None:\n            return inst\n        cls = _registry.get(name)\n        if cls is None:\n            raise KeyError(\n                f\"unknown source adapter {name!r}; available: {sorted(_registry.keys())}\"\n            )","sourceCodeStart":90,"sourceCodeEnd":126,"githubUrl":"https://github.com/MemPalace/mempalace/blob/06cb6987f02610784fefbad4b2bd5d026d164ba6/mempalace/sources/registry.py#L90-L126","documentation":"Error \"unknown source adapter {name!r}; available: {available_adapters()}\" thrown in MemPalace/mempalace.","triggerScenarios":"Thrown at mempalace/sources/registry.py:108 when the library encounters an invalid state.","commonSituations":"An unknown source adapter name was requested.","solutions":["Choose one of the listed available adapters, or install the adapter package"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"06cb6987f02610784fefbad4b2bd5d026d164ba6","analyzedAt":"2026-08-15T03:03:36.213Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}