Hello. When sending a custom event from the client, the event gets into the Kafka topic - snowplow_enriched_bad with an error
"failure":{
"timestamp":"2024-03-14T18:26:03.468223Z"
"messages":[
0:{
"schemaKey":"iglu:com.snowplowanalytics/steps/jsonschema/1-0-0"
"error":{
"error":"ResolutionError"
"lookupHistory":[
0:{
"repository":"Custom repo"
"errors":[
0:{
"error":"NotFound"
}
]
"attempts":1
"lastAttempt":"2024-03-14T18:26:03.212Z"
}
1:{
"repository":"Iglu Central"
"errors":[
0:{
"error":"NotFound"
}
]
"attempts":1
"lastAttempt":"2024-03-14T18:26:03.267Z"
}
2:{
"repository":"Iglu Central - GCP Mirror"
"errors":[
0:{
"error":"NotFound"
}
]
"attempts":1
"lastAttempt":"2024-03-14T18:26:03.467Z"
}
3:{
"repository":"Iglu Client Embedded"
"errors":[
0:{
"error":"NotFound"
}
]
"attempts":1
"lastAttempt":"2024-03-14T18:26:03.205Z"
}
]
}
}
]
Custom repo is a repository that I added according to the documentation - Iglu Resolver | Snowplow Documentation
{
"schema": "iglu:com.snowplowanalytics.iglu/resolver-config/jsonschema/1-0-1",
"data": {
"cacheSize": 0,
"repositories": [
{
"name": "Iglu Central",
"priority": 0,
"vendorPrefixes": [ "com.snowplowanalytics" ],
"connection": {
"http": {
"uri": "http://iglucentral.com"
}
}
},
{
"name": "Custom repo",
"priority": 0,
"vendorPrefixes": [ "com.snowplowanalytics" ],
"connection": {
"http": {
"uri": "https://{iglu_server_host}/api",
"apikey": "2cc29b15-e0f2-42c1-9bf6-f1115f2548c3"
}
}
}
]
}
}
Connecting and sending an event on the web
;(function(p,l,o,w,i,n,g){if(!p[i]){p.GlobalSnowplowNamespace=p.GlobalSnowplowNamespace||[];
p.GlobalSnowplowNamespace.push(i);p[i]=function(){(p[i].q=p[i].q||[]).push(arguments)
};p[i].q=p[i].q||[];n=l.createElement(o);g=l.getElementsByTagName(o)[0];n.async=1;
n.src=w;g.parentNode.insertBefore(n,g)}}(window,document,"script","https://cdnjs.cloudflare.com/ajax/libs/snowplow/2.18.2/sp.js","snowplow"));
window.snowplow('newTracker', 'sp1', '{collector}', {
appId: 'testApp',
platform: 'web',
});
snowplow('trackSelfDescribingEvent', {
schema: 'iglu:com.snowplowanalytics/steps/jsonschema/1-0-0',
data: {
"eventName": "step-one"
}
});
Tell me what could be the problem?