You are right @PaulBoocock . The issue was that the schema could not be found
I think the problem is that the com.acme schema is an imaginary one and not uploaded in the iglu-central/schemas folder.
So I am thinking for simplicity to modify my
curl_test.sh as
curl --request POST
–url http://34.91.20.131/com.snowplowanalytics.snowplow/tp2
–header ‘content-type: application/json’
–data ‘{
“schema”: “iglu:com.snowplowanalytics.snowplow/payload_data/jsonschema/1-0-4”,
“data”: [
{
“e”: “ue”,
“tv”: “curl”,
“p”: “srv”,
“aid”: “test”,
“ue_pr”: “{"schema":"iglu:com.snowplowanalytics.snowplow/unstruct_event/jsonschema/1-0-0","data":{"schema":"iglu:com.acme/event_name/jsonschema/1-0-0","data":{"property_1":2,"property_2":"testa"}}}”
}
]
}’
and created this schema
com.acme/event_name/jsonschema > 1.0.0
{
"$schema": "iglu:com.acme/event_name/jsonschema/1-0-0",
"description": "Test schema",
"self": {
"vendor":"com.acme",
"name": "test_schema",
"format": "jsonschema",
"version": "1-0-0"
}
"type": "object",
"properties": {
"property_1": {
"type": "integer"
},
"property_2": {
"type": "string"
}
},
"required": ["property_1", "property_2"],
"additionalProperties": false
}
and then upload the whole folder with the schema via terminal command : igluctl static push path/to-schema/ http://<Mini-domain-or-IP>/iglu-server <API key> --public
as mentioned here . Do you think that makes sense ?