{"record":{"id":"249109dd0a7d2073","repo":"langchain-ai/deepagents","slug":"unsupported-marketplace-source-type-source-sourc","errorCode":null,"errorMessage":"Unsupported marketplace source type: {source.source_type}","messagePattern":"Unsupported marketplace source type: (.+?)","errorType":"exception","errorClass":"MarketplaceError","httpStatus":null,"severity":"error","filePath":"libs/code/deepagents_code/plugins/marketplace.py","lineNumber":437,"sourceCode":"        marketplace = _load_marketplace_file(path)\n        _reject_url_marketplace_with_local_plugins(marketplace, source.value)\n        return marketplace, path\n    if source.source_type == \"github\":\n        if not isinstance(source, RepositoryMarketplaceSource):\n            msg = \"GitHub marketplace source is missing repository metadata\"\n            raise MarketplaceError(msg)\n        root = _materialize_marketplace_repository(\n            source, f\"https://github.com/{source.value}.git\"\n        )\n        return load_marketplace(root), root\n    if source.source_type == \"git\":\n        if not isinstance(source, RepositoryMarketplaceSource):\n            msg = \"Git marketplace source is missing repository metadata\"\n            raise MarketplaceError(msg)\n        root = _materialize_marketplace_repository(source, source.value)\n        return load_marketplace(root), root\n    msg = f\"Unsupported marketplace source type: {source.source_type}\"\n    raise MarketplaceError(msg)\n\n\ndef _reject_url_marketplace_with_local_plugins(\n    marketplace: PluginMarketplace, url: str\n) -> None:\n    \"\"\"Reject URL marketplaces whose plugins need a sibling filesystem tree.\n\n    Direct marketplace JSON URLs only cache the catalog file. Relative plugin\n    sources such as `./plugins/foo` cannot be resolved from that cache alone.\n\n    Raises:\n        MarketplaceError: If any plugin entry uses a local relative source.\n    \"\"\"\n    local_plugins = [\n        plugin.name\n        for plugin in marketplace.plugins\n        if _source_path(plugin.source) is not None\n    ]","sourceCodeStart":419,"sourceCodeEnd":455,"githubUrl":"https://github.com/langchain-ai/deepagents/blob/a1af029e6e73cb17c36bff823d227747b28e91e1/libs/code/deepagents_code/plugins/marketplace.py#L419-L455","documentation":"materialize_marketplace_source dispatches on source.source_type and supports \"url\", \"github\", \"git\", and local directory types. Any other source_type value falls through all branches and triggers this final error listing the unknown type.","triggerScenarios":"Passing a source object whose source_type is a typo (e.g. \"Github\", \"https\"), a newer type unsupported by the installed library version, or a corrupted/empty value.","commonSituations":"Typo in a marketplace config file; a config written against a newer library version being read by an older one; programmatic construction with an invalid type string.","solutions":["Correct the source_type in the config to one of the supported values (url, github, git, or a local path)","Upgrade the library if the source type was added in a newer release","Validate/normalize source_type before constructing the source object"],"exampleFix":"// before\nsource = RepositoryMarketplaceSource(source_type=\"Github\", value=\"org/repo\")\n// after\nsource = RepositoryMarketplaceSource(source_type=\"github\", value=\"org/repo\")","handlingStrategy":"validation","validationCode":"SUPPORTED = {\"url\", \"github\", \"git\", \"local\", \"directory\"}\nif source.source_type not in SUPPORTED:\n    raise ValueError(f\"unsupported marketplace source_type: {source.source_type!r}\")","typeGuard":null,"tryCatchPattern":"try:\n    marketplace, path = materialize_marketplace_source(source)\nexcept MarketplaceError as exc:\n    if \"Unsupported marketplace source type\" in str(exc):\n        log.error(\"Check source_type spelling and library version: %s\", exc)\n    raise","preventionTips":["Use only documented source_type values, lowercase","Keep library versions in sync across environments that read the same config","Add config validation at load time"],"tags":["configuration","validation","marketplace"],"backgroundTag":"unsupported-source-type","analyzedSha":"a1af029e6e73cb17c36bff823d227747b28e91e1","analyzedAt":"2026-08-29T11:43:24.718Z","schemaVersion":2},"datasetVersion":"2026-08-29T12:17:43.993Z"}