Significant-Gravitas/AutoGPT · error · NotFoundError

Preset #{preset_id} not found

Error message

Preset #{preset_id} not found

What it means

Error "Preset #{preset_id} not found" thrown in Significant-Gravitas/AutoGPT.

Source

Thrown at autogpt_platform/backend/backend/api/features/library/db.py:2195

        updated = await prisma.models.AgentPreset.prisma(tx).update(
            where={"id": preset_id},
            data=update_data,
            include=AGENT_PRESET_INCLUDE,
        )
    if not updated:
        raise RuntimeError(f"AgentPreset #{preset_id} vanished while updating")
    return library_model.LibraryAgentPreset.from_db(updated)


async def set_preset_webhook(
    user_id: str, preset_id: str, webhook_id: str | None
) -> library_model.LibraryAgentPreset:
    current = await prisma.models.AgentPreset.prisma().find_unique(
        where={"id": preset_id},
        include=AGENT_PRESET_INCLUDE,
    )
    if not current or current.userId != user_id:
        raise NotFoundError(f"Preset #{preset_id} not found")

    # Refuse to attach a webhook the caller doesn't own
    if webhook_id:
        webhook = await integrations_db.get_webhook(webhook_id)
        if webhook.user_id != user_id:
            raise NotFoundError(f"Webhook #{webhook_id} not found")

    updated = await prisma.models.AgentPreset.prisma().update(
        where={"id": preset_id},
        data=(
            {"Webhook": {"connect": {"id": webhook_id}}}
            if webhook_id
            else {"Webhook": {"disconnect": True}}
        ),
        include=AGENT_PRESET_INCLUDE,
    )
    if not updated:
        raise RuntimeError(f"AgentPreset #{preset_id} vanished while updating")

View on GitHub (pinned to 9c8bb5550f)

Solutions

  1. Confirm the preset ID exists and belongs to your account.
  2. Refresh presets and retry the operation.

When it happens

Trigger: Thrown at autogpt_platform/backend/backend/api/features/library/db.py:2195 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of Significant-Gravitas/AutoGPT@9c8bb5550f (2026-08-14). Data as JSON: /api/errors/e172acf1bba8f8d0. Report an issue: GitHub.