Xdydy commented on issue #54:
URL:
https://github.com/apache/rocketmq-eventbridge/issues/54#issuecomment-1420262074
> make sure yours request headers Content-Type starts with content in the
list {application/cloudevents-batch+json, application/json,
application/cloudevents+json}
I post the HTTP request as follows
```http
POST /putEvents HTTP/1.1
Host: 127.0.0.1:7001
Content-Type: application/cloudevents-batch+json
resourceOwnerAccountId: 123456
parentAccountId: 123456
loginAccountId: 123456
Content-Length: 343
{
"specversion": "1.0",
"type": "com.github.pull_request.opened",
"source": "https://github.com/cloudevents/spec/pull",
"subject": "123",
"id": "A234-1234-1234",
"time": "2018-04-05T17:31:00Z",
"datacontenttype": "application/json",
"data": {
"body": "demo"
},
"aliyuneventbusname": "demo-bus"
}
```
And it returns
```json
{
"requestId": "aaaae2a8-6937-422e-aced-f57fb86e44ff",
"code": "InternalError",
"message": "InternalError"
}
```
and there is no output in the access.log except for the requestTraceId
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]