Skip to content

[DOCS] TypeScript ADK returns -32003 when push notifications are disabled #929

Closed

Description

@inference-gateway-maintainer

Summary

The TypeScript ADK now returns JSON-RPC -32003 (PushNotificationNotSupportedError, A2A v1.0.1 section 5.4) instead of -32601 (Method Not Found) when an agent card sets capabilities.pushNotifications to anything but true and a caller invokes one of the push notification config methods (Create/Get/List/Delete TaskPushNotificationConfig). The methods are now always registered; the handler reports the capability gap. error.data carries the google.rpc.ErrorInfo entry with reason PUSH_NOTIFICATION_NOT_SUPPORTED.

New public export: createPushNotificationNotSupportedHandler(), plus the PUSH_NOTIFICATION_NOT_SUPPORTED_ERROR entry in JSONRPC_ERROR_CODES.

Upstream PR: inference-gateway/typescript-adk#248 (fixes inference-gateway/typescript-adk#243)

Affected pages: the TypeScript ADK error-code / push notification pages (anywhere the A2A error table or the push notification capability is documented).

Acceptance Criteria

  • Error-code reference lists -32003 PushNotificationNotSupportedError with the PUSH_NOTIFICATION_NOT_SUPPORTED ErrorInfo reason
  • Push notification docs state that the config methods answer -32003 (not -32601) when the card disables the capability
  • createPushNotificationNotSupportedHandler() documented for consumers registering methods on A2AServer directly

Activity

  1. added
    documentation
    on Oct 3, 2026
  2. added theissue type on Oct 3, 2026
  3. changed the issue type fromtoon Oct 3, 2026
  4. changed the issue type fromtoon Oct 3, 2026
  5. edenreich commented on Oct 3, 2026

    @edenreich
    Contributor

    @claude can you work on this? use /ponytail:ponytail

  6. inference-gateway-maintainer commented on Oct 3, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Claude finished @edenreich's task in 2m 43s —— View job • docs/issue-929-20261003-1336 • [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-929-20261003-1336?quick_pull=1&title=Issue%20%23929%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23929%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Done - PR #931

    • Gather context (read the upstream push-notification-config.ts, jsonrpc.ts and server-builder.ts to document the actual envelope)
    • Add -32003 / PUSH_NOTIFICATION_NOT_SUPPORTED to the error-code reference
    • Update push notification capability-gating text (-32003, not -32601)
    • Document createPushNotificationNotSupportedHandler()
    • Validate: bun run lint:md, bun run format:check, bun run build all pass
    • Commit + open PR

    What changed

    One new section in typescript-adk.md after "Configuring push notifications per task": When the card disables push notifications (-32003).

    • A2AServerBuilder.build() keeps all four TaskPushNotificationConfig methods registered when capabilities.pushNotifications is not true; they answer -32003 PushNotificationNotSupportedError (A2A v1.0.1 section 5.4) rather than -32601.
    • Full error envelope with the google.rpc.ErrorInfo entry in error.data (reason: PUSH_NOTIFICATION_NOT_SUPPORTED, domain: a2a-protocol.org), the JSONRPC_ERROR_CODES.PUSH_NOTIFICATION_NOT_SUPPORTED_ERROR export, and a code-reference row.
    • createPushNotificationNotSupportedHandler() subsection with a snippet for direct A2AServer.registerMethod consumers, verified against the barrel exports in src/server/index.ts.
    • Page frontmatter description extended for search.

    Not done: no separate ADK-wide error-code table was created - this page has no central error table today and the other A2A codes (-32004, -32007, -32009) are undocumented, so adding one is a larger pass. Say the word if you want it.
    | Branch | PR #931

  7. moved this from QA to Done in 2026on Oct 3, 2026
  8. inference-gateway-releaser commented on Oct 4, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.21 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions