$ go run vk-crawler
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x15e1f45]
goroutine 1 [running]:
github.com/himidori/golang-vk-api.NewVKClientWithToken(0xc000030070, 0x47, 0x0, 0x47, 0x0, 0xc000010728)
/Users/carter/go/pkg/mod/github.com/himidori/[email protected]/client.go:76 +0x105
main.init()
/Users/carter/go/src/vk-crawler/main.go:138 +0x578
exit status 2
When using the example for initialization with a token, a null pointer deference is raised (due to parsing nil to the TokenOptions parameter, which is later dereferenced in client.go before checking if TokenOptions is nil.
Написал вк бота с этой либой, запушил в хероку, но он требует забиндить порт (Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch). Может кто помочь?