eventmesh icon indicating copy to clipboard operation
eventmesh copied to clipboard

[Bug] The a2a protocol layer is not working

Open chenzejun opened this issue 9 months ago • 6 comments

Search before asking

  • [x] 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

chenzejun avatar Feb 12 '26 11:02 chenzejun

Welcome to the Apache EventMesh community!! We are glad that you are contributing by opening this issue. :D

Please make sure to include all the relevant context. We will be here shortly.

If you are interested in contributing to our project, please let us know! You can check out our contributing guide on contributing to EventMesh.

Want to get closer to the community?

WeChat Assistant WeChat Public Account Slack
Join Slack Chat

Mailing Lists:

Name Description Subscribe Unsubscribe Archive
Users User support and questions mailing list Subscribe Unsubscribe Mail Archives
Development Development related discussions Subscribe Unsubscribe Mail Archives
Commits All commits to repositories Subscribe Unsubscribe Mail Archives
Issues Issues or PRs comments and reviews Subscribe Unsubscribe Mail Archives

github-actions[bot] avatar Feb 12 '26 11:02 github-actions[bot]

It has been 90 days since the last activity on this issue. Apache EventMesh values the voices of the community. Please don't hesitate to share your latest insights on this matter at any time, as the community is more than willing to engage in discussions regarding the development and optimization directions of this feature.

If you feel that your issue has been resolved, please feel free to close it. Should you have any additional information to share, you are welcome to reopen this issue.

github-actions[bot] avatar May 14 '26 19:05 github-actions[bot]

hi, I can take this issue.

Anon2Tokyo avatar Aug 08 '26 06:08 Anon2Tokyo

The request in the reproduction appears to be sent to the wrong endpoint.

A2A requests should be sent to the A2A Gateway endpoints, for example:

POST /a2a/tasks?mode=sync
POST /a2a/tasks?mode=async

Example: curl -X POST 'http://127.0.0.1:10105/a2a/tasks?mode=sync'
-H 'Content-Type: application/json'
-d '{"targetAgent":"","message":""}'

/eventmesh/publish/{topic} is the legacy EventMesh HTTP publish API, not the A2A Gateway task submission API. Please refer to the A2A documentation for the supported endpoints: docs/a2a-protocol/README.md docs/a2a-protocol/README_EN.md docs/a2a-protocol/ARCHITECTURE.md

Anon2Tokyo avatar Aug 08 '26 10:08 Anon2Tokyo

The request in the reproduction appears to be sent to the wrong endpoint.

A2A requests should be sent to the A2A Gateway endpoints, for example:

POST /a2a/tasks?mode=sync POST /a2a/tasks?mode=async Example: curl -X POST 'http://127.0.0.1:10105/a2a/tasks?mode=sync' -H 'Content-Type: application/json' -d '{"targetAgent":"","message":""}'

/eventmesh/publish/{topic} is the legacy EventMesh HTTP publish API, not the A2A Gateway task submission API. Please refer to the A2A documentation for the supported endpoints: docs/a2a-protocol/README.md docs/a2a-protocol/README_EN.md docs/a2a-protocol/ARCHITECTURE.md

@chenzejun

Anon2Tokyo avatar Aug 08 '26 10:08 Anon2Tokyo

It has been 90 days since the last activity on this issue. Apache EventMesh values the voices of the community. Please don't hesitate to share your latest insights on this matter at any time, as the community is more than willing to engage in discussions regarding the development and optimization directions of this feature.

If you feel that your issue has been resolved, please feel free to close it. Should you have any additional information to share, you are welcome to reopen this issue.

github-actions[bot] avatar Nov 06 '26 18:11 github-actions[bot]