{"record":{"id":"f7053b67eb9e9be5","repo":"bytedance/deer-flow","slug":"channel-provider-is-not-enabled","errorCode":null,"errorMessage":"Channel provider is not enabled","messagePattern":"Channel provider is not enabled","errorType":"http","errorClass":"HTTPException","httpStatus":400,"severity":"error","filePath":"backend/app/gateway/routers/channel_connections.py","lineNumber":579,"sourceCode":"    disconnected = await repo.disconnect_connection(\n        connection_id=connection_id,\n        owner_user_id=_get_user_id(request),\n    )\n    if not disconnected:\n        raise HTTPException(status_code=404, detail=\"Channel connection not found\")\n    return Response(status_code=204)\n\n\n@router.delete(\"/{provider}/runtime-config\", response_model=ChannelProviderResponse)\nasync def disconnect_channel_provider_runtime(provider: str, request: Request) -> ChannelProviderResponse:\n    await require_admin_user(request, detail=_ADMIN_REQUIRED_DETAIL)\n    config = await _get_channel_connections_config(request)\n    if not config.enabled:\n        raise HTTPException(status_code=400, detail=\"Channel connections are disabled\")\n\n    provider_config = _provider_config(config, provider)\n    if not provider_config.enabled:\n        raise HTTPException(status_code=400, detail=\"Channel provider is not enabled\")\n\n    try:\n        repo = _get_repository(request, config)\n    except HTTPException as exc:\n        if exc.status_code != 503:\n            raise\n        repo = None\n\n    current_channels_config = await _get_channels_config(request)\n    candidate_channels_config = dict(current_channels_config)\n    candidate_channels_config.pop(provider, None)\n\n    stopped = await _sync_runtime_channel_after_removal(provider, candidate_channels_config)\n    if stopped is False:\n        display_name = _PROVIDER_META[provider][\"display_name\"]\n        raise HTTPException(status_code=400, detail=f\"Failed to stop {display_name} channel. Try again.\")\n\n    # Revoke the DB connection rows before committing the store/cache so a repo","sourceCodeStart":561,"sourceCodeEnd":597,"githubUrl":"https://github.com/bytedance/deer-flow/blob/1dd6ba1acb03700589994b0366c5d1c7d05e2eff/backend/app/gateway/routers/channel_connections.py#L561-L597","documentation":"Error \"Channel provider is not enabled\" thrown in bytedance/deer-flow.","triggerScenarios":"Thrown at backend/app/gateway/routers/channel_connections.py:579 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Enable this channel provider in config.yaml under channels.<provider>.enabled=true, then restart the Gateway.","Check that the provider's required configuration block exists and is valid."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"1dd6ba1acb03700589994b0366c5d1c7d05e2eff","analyzedAt":"2026-08-14T21:20:34.804Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}