Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

已经正常启动,获取https代理时报错 #31

Closed
lxl315 opened this issue Mar 20, 2019 · 4 comments
Closed

已经正常启动,获取https代理时报错 #31

lxl315 opened this issue Mar 20, 2019 · 4 comments

Comments

@lxl315
Copy link

lxl315 commented Mar 20, 2019

2019/03/20 17:25:33 http: panic serving [::1]:14121: runtime error: invalid memory address or nil pointer dereference
goroutine 1023 [running]:
net/http.(*conn).serve.func1(0xc000056b40)
C:/Go/src/net/http/server.go:1769 +0x140
panic(0xb127a0, 0xa68160)
C:/Go/src/runtime/panic.go:522 +0x1c3
github.com/henson/proxypool/pkg/storage.ProxyFind(0xb9f032, 0x5, 0xba5f21)
D:/goworker/src/github.com/henson/proxypool/pkg/storage/filter.go:102 +0x5a
github.com/henson/proxypool/api.FindHandler(0xc7a400, 0xc0001e0540, 0xc0000e2800)
D:/goworker/src/github.com/henson/proxypool/api/api.go:41 +0x145
net/http.HandlerFunc.ServeHTTP(0xbd41a0, 0xc7a400, 0xc0001e0540, 0xc0000e2800)
C:/Go/src/net/http/server.go:1995 +0x4b
net/http.(*ServeMux).ServeHTTP(0xc0001b0100, 0xc7a400, 0xc0001e0540, 0xc0000e2800)
C:/Go/src/net/http/server.go:2375 +0x1dd
net/http.serverHandler.ServeHTTP(0xc000286000, 0xc7a400, 0xc0001e0540, 0xc0000e2800)
C:/Go/src/net/http/server.go:2774 +0xaf
net/http.(*conn).serve(0xc000056b40, 0xc7b8c0, 0xc0001b0fc0)
C:/Go/src/net/http/server.go:1878 +0x858
created by net/http.(*Server).Serve
C:/Go/src/net/http/server.go:2884 +0x2fb

@sndnvaps
Copy link
Contributor

你确认已经存在数据在数据库中了吗。。
有可能,没有fetch到https代理库(即数据库中没有可用的https代理),这也是会出错的。
你看看能否获取http代理
@lxl315

@lxl315
Copy link
Author

lxl315 commented Mar 21, 2019

@sndnvaps http代理可以获取了。谢谢

@sndnvaps
Copy link
Contributor

就这问题,我已经提交了解决方案
@lxl315 @henson

@henson
Copy link
Owner

henson commented Mar 28, 2019

谢谢@sndnvaps,问题已解决。

@henson henson closed this as completed Mar 28, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants