{"record":{"id":"75a3348afe0c1613","repo":"bytedance/deer-flow","slug":"channel-service-is-not-running","errorCode":null,"errorMessage":"Channel service is not running","messagePattern":"Channel service is not running","errorType":"http","errorClass":"HTTPException","httpStatus":503,"severity":"error","filePath":"backend/app/gateway/routers/channels.py","lineNumber":50,"sourceCode":"    from app.channels.service import get_channel_service\n\n    service = get_channel_service()\n    if service is None:\n        return ChannelStatusResponse(service_running=False, channels={})\n    status = service.get_status()\n    return ChannelStatusResponse(**status)\n\n\n@router.post(\"/{name}/restart\", response_model=ChannelRestartResponse)\nasync def restart_channel(name: str, request: Request) -> ChannelRestartResponse:\n    \"\"\"Restart a specific IM channel.\"\"\"\n    await require_admin_user(request, detail=_ADMIN_REQUIRED_DETAIL)\n\n    from app.channels.service import get_channel_service\n\n    service = get_channel_service()\n    if service is None:\n        raise HTTPException(status_code=503, detail=\"Channel service is not running\")\n\n    success = await service.restart_channel(name)\n    if success:\n        logger.info(\"Channel %s restarted successfully\", name)\n        return ChannelRestartResponse(success=True, message=f\"Channel {name} restarted successfully\")\n    else:\n        logger.warning(\"Failed to restart channel %s\", name)\n        return ChannelRestartResponse(success=False, message=f\"Failed to restart channel {name}\")\n","sourceCodeStart":32,"sourceCodeEnd":59,"githubUrl":"https://github.com/bytedance/deer-flow/blob/1dd6ba1acb03700589994b0366c5d1c7d05e2eff/backend/app/gateway/routers/channels.py#L32-L59","documentation":"Error \"Channel service is not running\" thrown in bytedance/deer-flow.","triggerScenarios":"Thrown at backend/app/gateway/routers/channels.py:50 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Start the channel service (enable channels and restart the Gateway) before calling this endpoint.","Confirm the Gateway process is running and the channel manager initialized without errors in the logs."],"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-15T22:17:37.221Z"}