1

我在 logicapp 中使用发布事件

{
  "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"
  }
]

但仍然得到相同的结果。

4

1 回答 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"
       }
    }
于 2018-09-08T13:15:01.027 回答