[Bug] The a2a protocol layer is not working
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:
How to reproduce
- launch EventMesh
- send a json rpc request
- 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
- [x] I agree to follow this project's Code of Conduct *
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 |
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.
hi, I can take this issue.
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":"
/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
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
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.

