Team, I am facing this issue, even though I haven’t made any new changes.
[WARN] EventLog: Bad Error While Extracting Event(s) from Collector Payload and Validating It/Them
i am using snowplow micro in windows
........
<head>
<script type="text/javascript">
; (function (p, l, o, w, i, n, g) {
if (!p[i]) {
p.GlobalSnowplowNamespace = p.GlobalSnowplowNamespace || [];
p.GlobalSnowplowNamespace.push(i); p[i] = function () {
(p[i].q = p[i].q || []).push(arguments)
}; p[i].q = p[i].q || []; n = l.createElement(o); g = l.getElementsByTagName(o)[0]; n.async = 1;
n.src = w; g.parentNode.insertBefore(n, g)
}
}(
window,
document,
"script",
"https://55d89c18-05af-482b-b9ce-ce4bc59a9bb9.app.try-snowplow.com/v3/try.js",
"snowplow")
);
snowplow("newTracker", "try", "http://127.0.0.1:9090", {
appId: "try-snowplow", // you can specify your own app name here
platform: "web",
stateStorageStrategy: "localStorage",
contexts: {
webPage: true, // this sets a unique id for each page view
performanceTiming: true // this captures performance metrics like load times
}
});
// send first heartbeat after 10 seconds, and every 10 seconds thereafter
snowplow("enableActivityTracking", { minimumVisitLength: 10, heartbeatDelay: 10 });
snowplow("enableLinkClickTracking");
snowplow('setOptOutCookie', 'optoutcookie');
</script>
</head>
........
/mnt/c$ docker run -p 9090:9090 --mount type=bind,source=$(pwd)/schemas,destination=/config/iglu-client-embedded/schemas snowplow/snowplow-micro
:1.6.0
[INFO] akka.event.slf4j.Slf4jLogger - Slf4jLogger started
[INFO] com.snowplowanalytics.snowplow.micro.Main$ - No enrichments enabled.
[INFO] com.snowplowanalytics.snowplow.micro.Main$ - REST interface bound to /0.0.0.0:9090
[WARN] EventLog - BAD Error while extracting event(s) from collector payload and validating it/them.
[WARN] EventLog - BAD Error while extracting event(s) from collector payload and validating it/them.
$("#btnSnowPlow").click(function () {
window.snowplow('trackSelfDescribingEvent', {
event: {
schema: 'iglu:com.example/my-schema/jsonschema/1-0-0',
data: {
name: "John"
email: "john@yopmail.com",
job_role: "CEO",
promo_code: "330676768886"
}
}
});
console.log("Snowplow success")
});
{
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#",
"description": "Schema for an example event",
"self": {
"vendor": "com.snowplowanalytics",
"name": "example_event",
"format": "jsonschema",
"version": "1-0-0"
},
"type": "object",
"properties": {
"name": {
"type": "string",
"maxLength": 128
},
"job_role": {
"description": "",
"type": [
"string",
"null"
],
"maxLength": 128
},
"promo_code": {
"description": "",
"type": [
"string",
"null"
],
"minLength": 8,
"maxLength": 20
}
},
"additionalProperties": false,
"required": [
"name"
]
}
Below image of my chrome inspect element.
My all events are going to bad state
{
“total”: 2,
“good”: 0,
“bad”: 2
}