Skip to content

Commit

Permalink
Fix: don't retry on invalid JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Apr 3, 2022
1 parent 59d71ba commit 941af99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/metadata/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func (indexer *Indexer) resolveTokenMetadata(ctx context.Context, tm *models.Tok
indexer.incrementErrorCounter(e)
err = e.Err

if e.Type == resolver.ErrorInvalidHTTPURI {
if e.Type == resolver.ErrorInvalidHTTPURI || e.Type == resolver.ErrorTypeInvalidJSON {
tm.RetryCount = int8(indexer.settings.MaxRetryCountOnError)
}
}
Expand Down

0 comments on commit 941af99

Please sign in to comment.