{"record":{"id":"03cf68ff2506e02f","repo":"Significant-Gravitas/AutoGPT","slug":"str-e-03cf68","errorCode":null,"errorMessage":"str(e)","messagePattern":"str\\(e\\)","errorType":"http","errorClass":"HTTPException","httpStatus":500,"severity":"error","filePath":"autogpt_platform/backend/backend/api/features/library/routes/presets.py","lineNumber":68,"sourceCode":"    Args:\n        user_id (str): ID of the authenticated user.\n        page (int): Page number for pagination.\n        page_size (int): Number of items per page.\n        graph_id: Allows to filter presets by a specific agent graph.\n\n    Returns:\n        models.LibraryAgentPresetResponse: A response containing the list of presets.\n    \"\"\"\n    try:\n        return await db.list_presets(\n            user_id=user_id,\n            graph_id=graph_id,\n            page=page,\n            page_size=page_size,\n        )\n    except Exception as e:\n        logger.exception(\"Failed to list presets for user %s: %s\", user_id, e)\n        raise HTTPException(\n            status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, detail=str(e)\n        )\n\n\n@router.get(\n    \"/presets/{preset_id}\",\n    summary=\"Get a specific preset\",\n    description=\"Retrieve details for a specific preset by its ID.\",\n)\nasync def get_preset(\n    preset_id: str,\n    user_id: str = Security(autogpt_auth_lib.get_user_id),\n) -> models.LibraryAgentPreset:\n    \"\"\"\n    Retrieve details for a specific preset by its ID.\n\n    Args:\n        preset_id (str): ID of the preset to retrieve.","sourceCodeStart":50,"sourceCodeEnd":86,"githubUrl":"https://github.com/Significant-Gravitas/AutoGPT/blob/9c8bb5550f446ba5d3046b78896578742495b3cf/autogpt_platform/backend/backend/api/features/library/routes/presets.py#L50-L86","documentation":"Error \"str(e)\" thrown in Significant-Gravitas/AutoGPT.","triggerScenarios":"Thrown at autogpt_platform/backend/backend/api/features/library/routes/presets.py:68 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check server logs for full error details and fix the underlying issue.","Retry the request; if persistent, contact support with the error message."],"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-16T03:17:38.424Z"}