Significant-Gravitas/AutoGPT · error · RuntimeError
AgentPreset #{preset_id} vanished while updating
Error message
AgentPreset #{preset_id} vanished while updating What it means
Error "AgentPreset #{preset_id} vanished while updating" thrown in Significant-Gravitas/AutoGPT.
Source
Thrown at autogpt_platform/backend/backend/api/features/library/db.py:2213
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")
return library_model.LibraryAgentPreset.from_db(updated)
async def migrate_webhook_presets_to_new_version(
user_id: str,
new_graph: graph_db.GraphModel,
) -> library_model.WebhookPresetMigrationResult:
"""
Migrates webhook-attached presets for a graph to a newly activated version.
When a new agent version is activated (i.e. becomes the live version),
presets with webhooks that were pinned to an older version are updated
to point to the new active version, so that existing webhook URLs
continue to trigger the latest agent version.
A preset is only migrated when the new version's trigger is the *same block*
as the trigger of the version the preset is currently pinned to. The block
id determines the provider, webhook type and resource/event formats theView on GitHub (pinned to 9c8bb5550f)
Solutions
- Retry the update; the preset was deleted concurrently.
- Recreate the preset if it no longer exists.
When it happens
Trigger: Thrown at autogpt_platform/backend/backend/api/features/library/db.py:2213 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/e6313a73e4b30906.
Report an issue: GitHub.