Skip to content
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

bug ? #77

Open
flyysquirrel opened this issue Nov 26, 2022 · 0 comments
Open

bug ? #77

flyysquirrel opened this issue Nov 26, 2022 · 0 comments

Comments

@flyysquirrel
Copy link

flyysquirrel commented Nov 26, 2022

2022/11/26 18:20:29 [TRACE] Log Mode: Console (Trace)
2022/11/26 18:20:29 [ INFO] ProxyPool 
2022/11/26 18:20:29 [TRACE] Log path: 
2022/11/26 18:20:29 [ INFO] SQLite3 Supported
2022/11/26 18:20:29 Starting server 0.0.0.0:3000
2022/11/26 18:20:29 Chan: 0, IP: 0
2022/11/26 18:20:29 [ INFO] Before check, DB has: 0 records.
2022/11/26 18:20:29 [ INFO] 89IP] start test
2022/11/26 18:20:29 [ INFO] [IP3306]] start Get IpProxy
2022/11/26 18:20:29 [ INFO] After check, DB has: 0 records.
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x88bc3c]

goroutine 83 [running]:
github.com/Aiicy/htmlquery.(*NodeNavigator).NodeType(0x30?)
        /home/xxx/go/pkg/mod/github.com/!aiicy/[email protected]/query.go:169 +0x1c
github.com/antchfx/xpath.axisPredicate.func1({0xb002c0, 0xc0002e2150})
        /home/xxx/go/pkg/mod/github.com/antchfx/[email protected]/build.go:45 +0x47
github.com/antchfx/xpath.(*descendantQuery).Select.func1()
        /home/xxx/go/pkg/mod/github.com/antchfx/[email protected]/query.go:251 +0x62
github.com/antchfx/xpath.(*descendantQuery).Select(0xc0001beb70, {0xaf9d20, 0xc00012e9c0})
        /home/xxx/go/pkg/mod/github.com/antchfx/[email protected]/query.go:283 +0x170
github.com/antchfx/xpath.(*filterQuery).Select(0xc0001bebd0, {0xaf9d20, 0xc00012e9c0})
        /home/xxx/go/pkg/mod/github.com/antchfx/[email protected]/query.go:569 +0x50
github.com/antchfx/xpath.(*descendantQuery).Select(0xc0001bec00, {0xaf9d20, 0xc00012e9c0})
        /home/xxx/go/pkg/mod/github.com/antchfx/[email protected]/query.go:240 +0x5f
github.com/antchfx/xpath.(*descendantQuery).Select(0xc0001bec30, {0xaf9d20, 0xc00012e9c0})
        /home/xxx/go/pkg/mod/github.com/antchfx/[email protected]/query.go:240 +0x5f
github.com/antchfx/xpath.(*NodeIterator).MoveNext(0xc00012e9c0)
        /home/xxx/go/pkg/mod/github.com/antchfx/[email protected]/xpath.go:85 +0x38
github.com/Aiicy/htmlquery.Find(0x0, {0xa41217?, 0x0?})
        /home/xxx/go/pkg/mod/github.com/!aiicy/[email protected]/query.go:33 +0x175
github.com/henson/proxypool/getter.FQDL()
        /home/xxx/proxypool/getter/fanqiedl.go:14 +0x48
main.run.func1(0x0?)
        /home/xxx/proxypool/main.go:76 +0x32
created by main.run
        /home/xxx/proxypool/main.go:75 +0x94

conf/app.ini

; App name
APP_NAME = ProxyPool

[server]
HTTP_ADDR       = 0.0.0.0
HTTP_PORT       = 3000
; Session expires time
SESSION_EXPIRES = 168h0m0s

[database]
; Either "mysql", "postgres" or "sqlite3", you can connect to TiDB with MySQL protocol
DB_TYPE  = sqlite3
HOST     = 192.168.13.105:3306
NAME     = ProxyPool
USER     = root
PASSWD   = 5XSwBxGx
; For "postgres" only, either "disable", "require" or "verify-full"
SSL_MODE = disable
; For "sqlite3" and "tidb", use absolute path when you start as service
PATH     = data/ProxyPool.db

[log]
; Can be "console" and "file", default is "console"
; ; ; Use comma to separate multiple modes, e.g. "console, file"
MODE       = console
; Buffer length of channel, keep it as it is if you don't know what it is.
BUFFER_LEN = 100
; Either "Trace", "Info", "Warn", "Error", "Fatal", default is "Trace"
LEVEL      = Info
; Root path of log files, align will fill it automatically.
ROOT_PATH  = 

; For "console" mode only
[log.console]
; leave empty to inherit
LEVEL = Trace

; For "file" mode only
[log.file]
; leave empty to inherit
LEVEL          = Info
; This enables automated log rotate (switch of following options)
LOG_ROTATE     = true
; Segment log daily
DAILY_ROTATE   = true
; Max size shift of single file, default is 28 means 1 << 28, 256MB
MAX_SIZE_SHIFT = 28
; Max line number of single file
MAX_LINES      = 1000000
; Expired days of log file (delete after max days)
MAX_DAYS       = 7

[log.xorm]
; Enable file rotation
ROTATE       = true
; Rotate every day
ROTATE_DAILY = true
; Rotate once file size excesses x MB
MAX_SIZE     = 100
; Maximum days to keep logger files
MAX_DAYS     = 3

[security]
INSTALL_LOCK = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant