My iglu_resolver.json:
{
"schema": "iglu:com.snowplowanalytics.iglu/resolver-config/jsonschema/1-0-1",
"data": {
"cacheSize": 500,
"repositories": [
{
"name": "Iglu Central",
"priority": 0,
"vendorPrefixes": [ "com.snowplowanalytics" ],
"connection": {
"http": {
"uri": "http://iglucentral.com"
}
}
},
{
"name": "Iglu Cartful",
"priority": 5,
"vendorPrefixes": [ "com.cartful" ],
"connection": {
"http": {
"uri": "http://iglu.cartfulsolutions.com"
}
}
}
]
}
}
My call to the unstructured event (base64 intentionally disabled) as recorded by my browser:
ue_pr:{
"schema": "iglu:com.snowplowanalytics.snowplow/unstruct_event/jsonschema/1-0-0",
"data": {
"schema": "iglu:com.cartful/oa_event/jsonschema/1-0-0",
"data": {
"oae": "plugin:page:step:0",
"oad": {}
}
}
}
Here is my static iglu repo hosted at http://iglu.cartfulsolutions.com :
<html><head><title>Iglu Cartful</title></head>
<body>
<h2>/</h2>
<ul>
<li><a href="/schemas/com.cartful/oa_event/jsonschema/1-0-0">schemas/com.cartful/oa_event/jsonschema/1-0-0</a></li>
</ul>
</body></html>
Here is the contents of my schema located at http://iglu.cartfulsolutions.com/schemas/com.cartful/oa_event/jsonschema/1-0-0 :
{
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#",
"description": "Schema for a legacy OA style analytics event",
"self": {
"vendor": "com.cartful",
"name": "oa_event",
"format": "jsonschema",
"version": "1-0-0"
},
"type": "object",
"properties": {
"oae": {
"type": "string"
},
"oad": {
"type": "string"
}
},
"required": ["oae"],
"additionalProperties": false
}
Unfortunately no matter what I try, I’m can’t get my custom event to work. The logs seem to complain of 403 (forbidden) but everything in my bucket is publicly accessible and can be accessed via unauthenticated curl. Here are the logs:
level: \"error\"\n repositories: [\"Iglu Central [HTTP]\",\"Iglu Client Embedded [embedded]\",\"Iglu Cartful [HTTP]\"]\n"},{"level":"error","message":"error: Unexpected exception fetching iglu:com.cartful/oa_event/jsonschema/1-0-0 in HTTP Iglu repository Iglu Cartful: java.io.IOException: Server returned HTTP response code: 403 for URL: http://iglu.cartfulsolutions.com/schemas/com.cartful/oa_event/jsonschema/1-0-0\n level: \"error\"\n"},{"level":"error","message":"error: Unexpected exception fetching iglu:com.cartful/oa_event/jsonschema/1-0-0 in HTTP Iglu repository Iglu Cartful: java.io.IOException: Server returned HTTP response code: 403 for URL: http://iglu.cartfulsolutions.com/schemas/com.cartful/oa_event/jsonschema/1-0-0\n level: \"error\"\n"},{"level":"error","message":"error: Unexpected exception fetching iglu:com.cartful/oa_event/jsonschema/1-0-0 in HTTP Iglu repository Iglu Cartful: java.io.IOException: Server returned HTTP response code: 403 for URL: http://iglu.cartfulsolutions.com/schemas/com.cartful/oa_event/jsonschema/1-0-0\n level: \"error\"\n"}]
I have no idea why this wouldn’t work. Any thoughts? I also tried to embed the schema locally (using jvm-embedded as a guide) but that also didn’t work.