snowplow/iglu-scala-client

Unexpected server response error is not retried

Closed this issue · 1 comments

Redshift Loader gets Unexpected server response while trying to lookup the schema in repos, but the request is not retried.
Iglu Custom repository is a S3 bucket static repository. This request doesn't reach S3 bucket - there is no log for it in S3 server access logs. Seems like it's a 500 HTTP error and it should be retried, but it's not ("attempts": 1)

Could this be a bug in iglu-scala-client?

Cannot get schemas for iglu:com.foo/bar/jsonschema/1-*-*  
{
    "schemaCriterion": "iglu:com.foo/bar/jsonschema/1-*-*",
    "error": {
        "error": "ResolutionError",
        "lookupHistory": [
            {
                "repository": "Iglu Central Mirror",
                "errors": [
                    {
                        "error": "NotFound"
                    }
                ],
                "attempts": 1,
                "lastAttempt": "2022-12-14T06:00:03.301Z"
            },
            {
                "repository": "Iglu Client Embedded",
                "errors": [
                    {
                        "error": "NotFound"
                    }
                ],
                "attempts": 1,
                "lastAttempt": "2022-12-14T06:00:03.175Z"
            },
            {
                "repository": "Iglu Custom",
                "errors": [
                    {
                        "error": "RepoFailure",
                        "message": "Unexpected server response: "
                    }
                ],
                "attempts": 1,
                "lastAttempt": "2022-12-14T06:00:03.175Z"
            }
        ]
    }
}

Hey @marcin-j, your question is answered in here. Closing this issue for now.