通过逻辑应用将自定义消息发布到事件网格



我在逻辑应用程序中使用发布事件

{
"error": {
"code": "BadRequest",
"message": "Unexpected token when reading JSON. Expected: StartObject, actual: StartArray. Report '01a24d3c-7588-4580-b650-52aa4f25b805:9/8/2018 7:17:33 AM (UTC)' to our forums for assistance or raise a support ticket.",
"details": [
{
"code": "InputJsonInvalid",
"message": "Unexpected token when reading JSON. Expected: StartObject, actual: StartArray. Report '01a24d3c-7588-4580-b650-52aa4f25b805:9/8/2018 7:17:33 AM (UTC)' to our forums for assistance or raise a support ticket."
}
]
}
}

所以我尝试发送示例消息

[
{
"id": "1807",
"eventType": "recordInserted",
"subject": "myapp/vehicles/motorcycles",
"eventTime": "2017-08-10T21:03:07+00:00",
"data": {
"make": "Ducati",
"model": "Monster"
},
"dataVersion": "1.0"
}
]

但仍然得到相同的结果。

对于CloudEvent架构,请尝试以下示例消息:

{
"cloudEventsVersion": "0.1",
"eventTypeVersion": "",
"eventId": "12345",
"source": "#/myapp/vehicles/motorcycles",
"eventType": "recordInserted",
"eventTime": "2018-09-08T13:05:47.6120424Z",
"data": {
"make": "Ducati",
"model": "Monster"
}
}

相关内容

  • 没有找到相关文章

最新更新