Hi,
I have setup snowplow-micro in a local iglu repo so I can validate the schemas before we use them in production. There is no issue testing with the default payload, but my custom payloads (which I have already validated so I know the work) do not work on my instance.
I am using the standard setup from GitHub - snowplow-incubator/snowplow-micro-examples: Examples of how to apply Snowplow Micro to popular build/test strategies
Oddly enough, I am unable to successfully test the custom payloads they provided, http://localhost:9091/com.snowplowanalytics.snowplow/tp2
fails with
“Error while extracting event(s) from collector payload and validating it/them.”,
. The posting is done in python so it looks like this
data = {
"event": {
"schema": "iglu:test.example.iglu/cart_action_event/jsonschema/1-0-0",
"data": {
"type": "add"
}
},
"context": [
{
"schema": "iglu:test.example.iglu/product_entity/jsonschema/1-0-0",
"data": {
"sku": "100",
"name": "Galaxy QUest",
"price": 25.99,
"quantity": 1
}
}
]
}
headers = {
"Content-Type": "application/json",
}
# Post the event to the Snowplow micro endpoint
response = requests.post("http://localhost:9091/com.snowplowanalytics.snowplow/tp2", json=data, headers=headers)
I have no trouble accessing my iglu schemas on say this url
[type or paste code here](http://localhost:9091/micro/iglu/test.example.iglu/product_entity/jsonschema/1-0-0)
Has anyone tried to use snowplow-micro to test like this before?