Skip to content

A2A agent execution fails with "Failed query: insert into "user_token" #2760

@Konstantinov-Innokentii

Description

Note, that this bug is reported by community member here.

Calling A2A endpoint with an organization token fails. Steps to reprocude:

  1. Created a new agent under the Default team
  2. Tried calling the A2A endpoint with an organization token
  3. Error:
{
    "jsonrpc": "2.0",
    "id": 1,
    "error": {
        "code": -32603,
        "message": "Failed query: insert into \"user_token\" (\"id\", \"organization_id\", \"user_id\", \"name\", \"secret_id\", \"token_start\", \"created_at\", \"last_used_at\") values (default, $1, $2, $3, $4, $5, default, default) returning \"id\", \"organization_id\", \"user_id\", \"name\", \"secret_id\", \"token_start\", \"created_at\", \"last_used_at\"\nparams: default-org,system,Personal Token,7aff233b-0062-4f29-9464-74d09078023a,archestra_81fa"
    }
}
  1. But when we switched to using a team token instead, it worked fine and the A2A call succeeded.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingonly for core teamThis issue is not open to external contributors.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions