Factories
operation_not_supported
The requested operation is not supported for this resource or its current state.
Walk me through resolving this issue: https://docs.warp.dev/factories/api-and-sdk/troubleshooting/errors/operation-not-supported/
The operation_not_supported error occurs when you attempt an operation that is not currently supported for the given resource or its current state.
Details
Section titled “Details”- HTTP Status:
422 Unprocessable Entity - Retryable: No
- Task State: FAILED
When does this occur?
Section titled “When does this occur?”This error is returned when:
- You attempt to cancel a self-hosted agent run via the API (self-hosted runs must be cancelled through the hosting infrastructure)
- You attempt to cancel a local agent run via the API (local runs must be cancelled from the source client)
- You attempt to cancel a run triggered via GitHub Actions (these must be cancelled through the GitHub Actions workflow view)
Example response
Section titled “Example response”{ "type": "/factories/api-and-sdk/troubleshooting/errors/operation-not-supported/", "title": "Self-hosted agent runs cannot be cancelled with the API.", "status": 422, "instance": "/api/v1/agent/tasks/abc123/cancel", "error": "Self-hosted agent runs cannot be cancelled with the API.", "retryable": false}How to resolve
Section titled “How to resolve”- Check the error message to understand which operation is unsupported and why.
- Use the appropriate method for the operation:
- Self-hosted runs — Cancel through your hosting infrastructure.
- Local runs — Cancel from the Warp desktop app or terminal session.
- GitHub Actions runs — Cancel via the GitHub Actions workflow view.
Related
Section titled “Related”- Cloud agents overview — How cloud agent tasks work
- Self-hosting — Self-hosted agent configuration
- Warp Platform API — API reference for managing agent tasks