Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
@jmesnil

Description

@jmesnil
Issue body actions

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
Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.