We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88ae13d commit b6a862dCopy full SHA for b6a862d
1 file changed
cmd/ipdex/search/search.go
@@ -55,7 +55,7 @@ func SearchCommand(query string, since string, maxResult int) {
55
ipCache := make(map[string]bool, 0)
56
for {
57
items, err := paginator.Next()
58
- if err != nil && strings.Contains(strings.ToLower(err.Error()), "too much ips requested") {
+ if err != nil && (strings.Contains(strings.ToLower(err.Error()), "too much ips requested") || strings.Contains(strings.ToLower(err.Error()), "unexpected http code : 400 bad request")) {
59
Limit = 10
60
paginator = cti.NewSearchPaginator(ctiClient, cti.SearchParams{
61
Since: &since,
0 commit comments