Skip to content

[Bug]: v0.3 compat REST server has no DELETE route for push notification configs #1441

Closed

Description

@YusefSyed

What happens

With v0.3 compatibility enabled, DELETE /v1/tasks/{id}/pushNotificationConfigs/{configId} is not served by the v0.3 REST adapter. REST03Adapter.routes() mounts GET and POST for push notification configs but no DELETE, so the request falls through to the v1.0 /{tenant} mount with tenant v1, and a v0.3 client gets:

400 VERSION_NOT_SUPPORTED
A2A version '0.3' is not supported by this handler. Expected version '1.0'.

The same delete succeeds over v0.3 JSON-RPC (tasks/pushNotificationConfig/delete) and v0.3 gRPC (DeleteTaskPushNotificationConfig).

Expected

The v0.3 binding defines this route: the method mapping table in spec section 3.5.6, and the google.api.http option on DeleteTaskPushNotificationConfig in a2a_v0_3.proto. Section 3.5.4 says each transport must provide identical functionality.

To reproduce (main at 2cc1dd5)

  1. Serve a DefaultRequestHandler through create_rest_routes(..., enable_v0_3_compat=True).
  2. Create a push notification config over v0.3 REST (POST /v1/tasks/{task_id}/pushNotificationConfigs).
  3. Send DELETE /v1/tasks/{task_id}/pushNotificationConfigs/{config_id} with A2A-Version: 0.3.

Step 3 returns 400 instead of 200 {}.

#1424 notes that the compat REST client's delete stays unimplemented because the compat REST server does not mount a delete route; this is that missing route.

Proposed fix

Add REST03Handler.delete_push_notification, which builds the v0.3 delete request from the path and calls the v1.0 handler through RequestHandler03, and mount it in REST03Adapter.routes(). I have this ready with tests and will open a PR.

Activity

  1. added
    component: server
    on Nov 10, 2026
  2. added theissue type on Nov 10, 2026
  3. rohityan commented on Nov 10, 2026

    @rohityan

    Hi @YusefSyed , thank you for identifying this.

    The REST03Adapter.routes()in src/a2a/compat/v0_3/rest_adapter.py is missing the DELETE route for push notification configs, causing v0.3 delete requests to fall through to the v1.0 handler and fail with 400 VERSION_NOT_SUPPORTED.

    Your PR implementing a delete handler method on REST03Handler that unpacks the path parameters and invokes RequestHandler03, and mounting ('/v1/tasks/{id}/pushNotificationConfigs/{push_id}', 'DELETE') in REST03Adapter.routes() is right approach. Thanks for contributing and assigning this issue to you till it gets reviewed.

  4. added a commit that references this issue on Nov 13, 2026
    14e799c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

component: serverstatus:awaiting response

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions