{"record":{"id":"58c22be8807bacab","repo":"Significant-Gravitas/AutoGPT","slug":"block-block-id-not-found-58c22b","errorCode":null,"errorMessage":"Block #{block_id} not found.","messagePattern":"Block #(.+?) not found\\.","errorType":"http","errorClass":"HTTPException","httpStatus":404,"severity":"error","filePath":"autogpt_platform/backend/backend/api/features/v1.py","lineNumber":523,"sourceCode":"\n@v1_router.post(\n    path=\"/blocks/{block_id}/execute\",\n    summary=\"Execute graph block\",\n    tags=[\"blocks\"],\n    dependencies=[Security(requires_user), Depends(enforce_payment_paywall)],\n    responses={\n        402: {\"description\": \"Subscription required (NO_TIER user, paywall on)\"},\n    },\n)\nasync def execute_graph_block(\n    block_id: str,\n    data: BlockInput,\n    user_id: Annotated[str, Security(get_user_id)],\n    ctx: Annotated[RequestContext, Security(get_request_context)],\n) -> CompletedBlockOutput:\n    obj = get_block(block_id)\n    if not obj:\n        raise HTTPException(status_code=404, detail=f\"Block #{block_id} not found.\")\n    if obj.disabled:\n        raise HTTPException(status_code=403, detail=f\"Block #{block_id} is disabled.\")\n\n    user = await get_user_by_id(user_id)\n    if not user:\n        raise HTTPException(status_code=404, detail=\"User not found.\")\n\n    try:\n        await execution_utils.charge_for_direct_block_execution(\n            user_id=user_id, block=obj, input_data=data, source=\"internal\"\n        )\n    except InsufficientBalanceError as e:\n        raise HTTPException(status_code=HTTP_402_PAYMENT_REQUIRED, detail=str(e)) from e\n\n    # Direct block execution has no graph; build a minimal ExecutionContext\n    # carrying the caller's identity + timezone so blocks that depend on\n    # those (e.g. time blocks) get correct data.\n    execution_context = ExecutionContext(","sourceCodeStart":505,"sourceCodeEnd":541,"githubUrl":"https://github.com/Significant-Gravitas/AutoGPT/blob/9c8bb5550f446ba5d3046b78896578742495b3cf/autogpt_platform/backend/backend/api/features/v1.py#L505-L541","documentation":"Error \"Block #{block_id} not found.\" thrown in Significant-Gravitas/AutoGPT.","triggerScenarios":"Thrown at autogpt_platform/backend/backend/api/features/v1.py:523 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the block ID exists in the block registry.","Refresh the available blocks list and retry."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9c8bb5550f446ba5d3046b78896578742495b3cf","analyzedAt":"2026-08-14T17:17:21.957Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}