Issue with Iglu Resolver

Hello,

I seem to be having an issue with the Iglu resolver.

I have created a static s3 repo with the url

https://s3-eu-west-1.amazonaws.com/igluresolver/schemas/com.pubfactory/myschema/jsonschema/1-0-0

In my code I have a SelfDescribingJson with the schema of iglu:com.pubfactory/myschema/jsonschema/1-0-0

However when I run the code the enricher is throwing an error

"errors":[{"level":"error","message":"error: Could not find schema with key iglu:com.pubfactory/myschema/jsonschema/1-0-0 in any repository, tried:\n    level: \"error\"\n    repositories: [\"Iglu Central [HTTP]\",\"Iglu Client Embedded [embedded]\",\"Acme Iglu Repo (HTTP) [HTTP]\"]\n"},{"level":"error","message":"error: Problem parsing iglu:com.pubfactory/myschema/jsonschema/1-0-0 as JSON in HTTP Iglu repository Acme Iglu Repo (HTTP): Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null') at [Source: sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@xxxxxx; line: 1, column: 2]\n    level: \"error\"\n"},{"level":"error","message":"error: Problem parsing iglu:com.pubfactory/myschema/jsonschema/1-0-0 as JSON in HTTP Iglu repository Acme Iglu Repo (HTTP): Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null') at [Source: sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@xxxxxx; line: 1, column: 2]\n    level: \"error\"\n"},{"level":"error","message":"error: Problem parsing iglu:com.pubfactory/myschema/jsonschema/1-0-0 as JSON in HTTP Iglu repository Acme Iglu Repo (HTTP): Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null') at [Source: sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@xxxxxx; line: 1, column: 2]\n    level: \"error\"\n"}],"failure_tstamp":"2018-04-06T16:50:29.823Z"}

To me the paths look correct yet it doesn’t seem to be,

I forgot to add my resolver config,

{

“schema”: “iglu:com.snowplowanalytics.iglu/resolver-config/jsonschema/1-0-1”,
“data”: {
“cacheSize”: 1000,
“repositories”: [
{
“name”: “Iglu Central”,
“priority”: 0,
“vendorPrefixes”: [ “com.snowplowanalytics” ],
“connection”: {
“http”: {
“uri”: “http://iglucentral.com
}
}
},
{
“name”: “Acme Iglu Repo (HTTP)”,
“priority”: 5,
“vendorPrefixes”: [ “com.pubfactory” ],
“connection”: {
“http”: {
“uri”: “https://s3-eu-west-1.amazonaws.com/igluresolver
}
}
}
]
}
}

I have found a workaround so can ignore this ticket.

What was the problem @nakories?

It couldn’t find the files in my s3 bucket, I guess there must be something in the way that it was setup.

I just changed my resolver to point at localhost and ran a python server using python -m http.server