Skip to content

quota crashing cli on >100% usage (coming from API?) #255

Description

@luckman212

ipinfo cli 3.3.2

got this today after a fat-fingered query for a /16 subnet resulted in 65k+ queries being sent to the API before I could hit ^c

note the 101% of total 50000 used line…

$ ipinfo quota
Usage
- Total Requests            50000
- Remaining Requests        0
- Requests Made Today       47038
- Requests Made This Month  50282

101% of total 50000 used
panic: strings: negative Repeat count

goroutine 1 [running]:
strings.Repeat({0x10103bb10?, 0x1?}, 0x1014e1710?)
	/opt/homebrew/Cellar/go/1.27.1/libexec/src/strings/strings.go:609 +0x4a0
main.getUsageBar(0x65)
	/private/tmp/ipinfo-cli-20260911-2409-1ldkyr/cli-ipinfo-3.3.2/ipinfo/cmd_quota.go:103 +0x58
main.printStats(0x0, 0x14ede434e000)
	/private/tmp/ipinfo-cli-20260911-2409-1ldkyr/cli-ipinfo-3.3.2/ipinfo/cmd_quota.go:130 +0x1c0
main.cmdQuota()
	/private/tmp/ipinfo-cli-20260911-2409-1ldkyr/cli-ipinfo-3.3.2/ipinfo/cmd_quota.go:97 +0x2ac
main.main()
	/private/tmp/ipinfo-cli-20260911-2409-1ldkyr/cli-ipinfo-3.3.2/ipinfo/main.go:88 +0x5e0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions