我们使用unstruct_event但它总是会导致失败。我不明白这里出了什么问题。这里哪个模式字段出错了,unstruct_event的模式字段或 unstruct_event 中数据对象的模式字段?在此处的错误消息中包含实际的失败值将非常有价值......
"failure": {
"timestamp": "2021-01-20T08:03:51.128Z",
"messages": [
{
"schemaKey": "iglu:com.snowplowanalytics.snowplow/unstruct_event/jsonschema/1-0-0",
"error": {
"error": "ValidationError",
"dataReports": [
{
"message": "$.schema: does not match the regex pattern ^iglu:[a-zA-Z0-9-_.]+/[a-zA-Z0-9-_]+/[a-zA-Z0-9-_]+/[0-9]+-[0-9]+-[0-9]+$",
"path": "$.schema",
"keyword": "pattern",
"targets": [
"^iglu:[a-zA-Z0-9-_.]+/[a-zA-Z0-9-_]+/[a-zA-Z0-9-_]+/[0-9]+-[0-9]+-[0-9]+$"
]
}
]
}
}
]
}
这是负载中的 unstruct_event 字段:
"unstruct_event": "{\"schema\":\"iglu:com.snowplowanalytics.snowplow/unstruct_event/jsonschema/1-0-0\",\"data\":{\"schema\":\"https://thijsbucket-dev.s3-eu-west-1.amazonaws.com/schemas/com.thijslearning/thijs-event/jsonschema/1-0-1.json\",\"data\":{\"event\":\"clicks\",\"action\":\"Feed rename item\",\"label\":\"2 Metadata\",\"CD_thijs_id\":\"5424\",\"CD_role\":\"thijser\",\"CD_method_name\":\"0 Thijs Manual MR\",\"CD_language\":\"en\",\"CD_window_size\":\"1024x768\",\"CD_demo_yn\":false}}}",