Skip to content

[Bug]: [spec-1.0] Sending an invalid message to the server raises an InternalServerError #512

@jmesnil

Description

@jmesnil

What happened?

More info at https://github.com/a2aproject/a2a-tck/pull/98/files#r2592807248

but TL;DR if my branch of TCK send a 'SendMessage' to the server with an invalid payload (missing required role and parts fields:

{"message": {"messageId": "123"}}

it raises the error {'code': -32603, 'message': "Parameter 'role' may not be null"} that corresponds to an InternalError.
When I look at the logs of my server, the IllegalArgumentException from the Message.Builder is not catched and raised as a valid spec error (should be InvalidRequestError imho)

Relevant log output

Code of Conduct

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions