Getting Error message


#1

Getting this error ,
d6df2c06880c\t-\t-\t-\t-\t-",“errors”:[{“level”:“error”,“message”:“error: Could not find schema with key iglu:com.snowplowanalytics.mm/click_event/jsonschema/1-0-0 in any repository, tried:\n level: “error”\n repositories: [“Iglu Client Embedded [embedded]”,“Custom Schemas [HTTP]”,“Iglu Central [HTTP]”]\n”},{“level”:“error”,“message”:“error: Problem parsing iglu:com.snowplowanalytics.mm/click_event/jsonschema/1-0-0 as JSON in HTTP Iglu repository Custom Schemas: 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.snowplowanalytics.mm/click_event/jsonschema/1-0-0 as JSON in HTTP Iglu repository Custom Schemas: 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.snowplowanalytics.mm/click_event/jsonschema/1-0-0 as JSON in HTTP Iglu repository Custom Schemas: 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”:“2017-11-30T16:23:57.281Z”}

im also sending my click_event schema being used:

{
"$schema": “https://datascience-iglu-repo.cxawsnprd.massmutual.com/com.snowplowanalytics.mm/click_event/jsonschema/1-0-0#”,
“description”: “Schema for click_event”,
“self”: {
“vendor”: “com.snowplowanalytics.mm”,
“name”: “click_event”,
“format”: “jsonschema”,
“version”: “1-0-0”
},
“type”: “object”,
“properties”: {
“linkName”: {
“type”: “string”
},
“linkType”: {
“type”: “string”
},
“pageName”: {
“type”: “string”
},
“sc_audience” : {
“type”: “string”
},
“url” : {
“type”: “string”
},
“authentication_status”: {
“type”: “string”
},
“sc_logged_in_status” : {
“type”: “string”
},
“lead_id” : {
“type”: “string”
},
“tealium_session_id” : {
“type”: “string”
},
“tealium_visitor_id” : {
“type”: “string”
},
“sc_calculator_results” : {
“type”: “string”
},
“sc_portal_login” : {
“type”: “string”
},
“sc_navigation_actions” : {
“type”: “string”
},
“query_string” : {
“type”: “string”
},
“calculator_name” : {
“type”: “string”
},
“calculator_category” : {
“type”: “string”
},
“calculator_quantity” : {
“type”: “string”
},
“calculator_value” : {
“type”: “string”
},
“calculator_finished_id” : {
“type”: “string”
},
“content_type” : {
“type”: “string”
},
“site_id” : {
“type”: “string”
},
“visitor_id220892” : {
“type”: “string”
},
“search_term” : {
“type”: “string”
},
“advisor” : {
“type”: “string”
},
“agency” : {
“type”: “string”
},
“state” : {
“type”: “string”
},
“city” : {
“type”: “string”
},
“field_interaction” : {
“type”: “string”
},
“event_name” : {
“type”: “string”
},
“homepage_tile_text” : {
“type”: “string”
},
“author” : {
“type”: “string”
},
“scope” : {
“type”: “string”
},
“results_count” : {
“type”: “string”
},
“module_section” : {
“type”: “string”
},
“pdf_name” : {
“type”: “string”
},
“filters” : {
“type”: “string”
}
},
“minProperties”: 1,
“required”: [],
“additionalProperties”: true
}


#2

@waspesi,

I can see two main problems here:

  1. Your schema cannot be found in your Iglu server
  2. The schema itself is not a proper JSON (which could be causing the error 1)

Sort out the error 2 and re-upload your schema which might also resolve the error 1

You have mixed quotes in your schema " and . The 2nd one is illegal. It might have been introduced by the editor you were using. Here’s the amended schema

{
  "$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#",
  "description": "Schema for click_event",
  "self": {
    "vendor": "com.snowplowanalytics.mm",
    "name": "click_event",
    "format": "jsonschema",
    "version": "1-0-0"
  },
  "type": "object",
  "properties": {
    "linkName": {
      "type": "string"
    },
    "linkType": {
      "type": "string"
    },
    "pageName": {
      "type": "string"
    },
    "sc_audience": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "authentication_status": {
      "type": "string"
    },
    "sc_logged_in_status": {
      "type": "string"
    },
    "lead_id": {
      "type": "string"
    },
    "tealium_session_id": {
      "type": "string"
    },
    "tealium_visitor_id": {
      "type": "string"
    },
    "sc_calculator_results": {
      "type": "string"
    },
    "sc_portal_login": {
      "type": "string"
    },
    "sc_navigation_actions": {
      "type": "string"
    },
    "query_string": {
      "type": "string"
    },
    "calculator_name": {
      "type": "string"
    },
    "calculator_category": {
      "type": "string"
    },
    "calculator_quantity": {
      "type": "string"
    },
    "calculator_value": {
      "type": "string"
    },
    "calculator_finished_id": {
      "type": "string"
    },
    "content_type": {
      "type": "string"
    },
    "site_id": {
      "type": "string"
    },
    "visitor_id220892": {
      "type": "string"
    },
    "search_term": {
      "type": "string"
    },
    "advisor": {
      "type": "string"
    },
    "agency": {
      "type": "string"
    },
    "state": {
      "type": "string"
    },
    "city": {
      "type": "string"
    },
    "field_interaction": {
      "type": "string"
    },
    "event_name": {
      "type": "string"
    },
    "homepage_tile_text": {
      "type": "string"
    },
    "author": {
      "type": "string"
    },
    "scope": {
      "type": "string"
    },
    "results_count": {
      "type": "string"
    },
    "module_section": {
      "type": "string"
    },
    "pdf_name": {
      "type": "string"
    },
    "filters": {
      "type": "string"
    }
  },
  "minProperties": 1,
  "required": [],
  "additionalProperties": true
}

Also, note the value of $schema. It’s not critical but more accurate to refer to http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0# which describes any self-describing event.

I would recommend linting your schema first before uploading to Iglu server.


#3

Thanks, one question how would you know the values of the schema if its not mapped to the location with the values.

Wayne Aspesi
Marketing Analytics Consultant | Data Analytics
T: (413) 744-1512
MassMutual
1295 State Street | MIP F205 | Springfield, MA 01111
MassMutual.com | RetireSmart | Facebook | Twitter | LinkedIn
Please use below link to submit requests:
Data Analytics Requestshttp://mminfo.private.massmutual.com/RequestCenter/myservices/navigate.do?query=serviceid&sid=1481&layout=&userid_for_service_search=12167&

Massachusetts Mutual Life Insurance Company (MassMutual), Springfield, MA 01111-0001,
and its affiliated US insurance companies.


#4

@waspesi,

The parameter $schema is informational. Your schema is actually referenced by the property within self. In other words, your schema is expected to be located in the following path of your own Iglu server.

com.snowplowanalytics.mm/click_event/jsonschema/1-0-0
      |                     |           |          |
      |-- vendor            |           |          |
                            |-- name    |          |
                                        |-- format |
                                                   |-- version

When you track your custom event it would be in the form:

window.snowplow('trackSelfDescribingEvent', {
    schema: 'iglu:com.snowplowanalytics.mm/click_event/jsonschema/`1-0-0',
    data: {
        // your data
    }
});