-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
grab/ti.go:53 panic问题 #21
Labels
bug
Something isn't working
Comments
i have the same problem too!!! |
奇安信ti的接口一个ip速度请求过快的话,服务端会返回一个空表 |
而53行没有考虑过pageCount为空的情况,可以把pageCount提前判断一下不为零即可向下运行,不过还是要达到预期效果还是要控制一下访问间隔的
|
zema1
added a commit
that referenced
this issue
Apr 10, 2023
zema1
added a commit
that referenced
this issue
Apr 10, 2023
zema1
added a commit
that referenced
this issue
Apr 10, 2023
zema1
added a commit
that referenced
this issue
Apr 10, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
panic: runtime error: integer divide by zero
goroutine 72 [running]:
github.com/zema1/watchvuln/grab.(*TiCrawler).GetPageCount(0xc00038ee80, {0x110ae38?, 0xc0002d3f80}, 0x64)
github.com/zema1/watchvuln/grab/ti.go:53 +0x3be
main.initData({0x110ae38, 0xc0002d3f80}, 0xc0002d3780, {0x110b848, 0xc00038ee80})
github.com/zema1/watchvuln/main.go:386 +0xd5
main.Action.func1()
github.com/zema1/watchvuln/main.go:188 +0x2d
golang.org/x/sync/errgroup.(*Group).Go.func1()
golang.org/x/sync@v0.1.0/errgroup/errgroup.go:75 +0x64
created by golang.org/x/sync/errgroup.(*Group).Go
golang.org/x/sync@v0.1.0/errgroup/errgroup.go:72 +0xa5
The text was updated successfully, but these errors were encountered: