{"record":{"id":"74debdfebe9ccd89","repo":"Significant-Gravitas/AutoGPT","slug":"user-not-found-74debd","errorCode":null,"errorMessage":"User not found.","messagePattern":"User not found\\.","errorType":"http","errorClass":"HTTPException","httpStatus":404,"severity":"error","filePath":"autogpt_platform/backend/backend/api/features/v1.py","lineNumber":529,"sourceCode":"    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(\n        user_id=user_id,\n        user_timezone=get_user_timezone_or_utc(user.timezone),\n    )\n\n    start_time = time.time()\n    try:","sourceCodeStart":511,"sourceCodeEnd":547,"githubUrl":"https://github.com/Significant-Gravitas/AutoGPT/blob/9c8bb5550f446ba5d3046b78896578742495b3cf/autogpt_platform/backend/backend/api/features/v1.py#L511-L547","documentation":"Error \"User not found.\" thrown in Significant-Gravitas/AutoGPT.","triggerScenarios":"Thrown at autogpt_platform/backend/backend/api/features/v1.py:529 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Confirm the user account exists; sign in again to refresh the session.","Contact support if the account was deleted unexpectedly."],"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-15T17:31:12.345Z"}