Skip to content

[Bug] The a2a protocol layer is not working #5225

@chenzejun

Description

@chenzejun

Search before asking

  • I had searched in the issues and found no similar issues.

Environment

Mac

EventMesh version

master

What happened

Can not transforms JSON-RPC into CloudEvent corretcly. like methods
This is my request:

curl -X POST http://127.0.0.1:10105/eventmesh/publish/test-topic \
-H "Content-Type:application/json" \
-H "protocoltype: a2a" \
-H "protocolversion: 2.0" \
-d '{
   "jsonrpc": "2.0",
   "method": "message/send",
   "id": "curl-req-002",
   "params": {
       "message": {
           "role": "user",
           "message_id": "msg-456",
           "parts": [
               {
                   "kind": "text",
                   "text": "What is the weather in Shanghai?"
               }
           ]
       },
       "_topic": "test-topic"
   }
}'

And this is the message:

Image

How to reproduce

  1. launch EventMesh
  2. send a json rpc request
  3. check protocol type in message is http rather than a2a

Debug logs

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions