Skip to content

Task ID synchronization error: "Task was specified but does not exist" in airbnb_planner_multiagent #333

@dhruv-bansal

Description

@dhruv-bansal

What happened?

The host agent was generating task IDs locally and sending them to remote agents (Weather Agent, Airbnb Agent) via the taskId field in message payloads. However, remote agents couldn't recognize these externally-generated task IDs because they expect to create their own tasks when receiving new messages, leading to JSONRPC errors.

I have fixed the issue, I will be raising the PR soon.

Relevant log output

JSONRPC error: Task <task-id> was specified but does not exist

Added some custom logs to see the issue
# Host agent generating and sending task ID
🔑 Task ID: bbcd8576-d867-4296-8890-573d51da2fdc (from state)
✅ Added taskId to payload: bbcd8576-d867-4296-8890-573d51da2fdc

# Remote agent rejecting the unknown task ID
❌ Non-success response from 'weather_agent': <class 'a2a.client.errors.A2AClientError'>
❌ Error details: Task bbcd8576-d867-4296-8890-573d51da2fdc was specified but does not exist

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions