vt-go
vt-go copied to clipboard
Program gets stuck and cannot read data after running for a few days
I've been using the VirusTotal API with Go and I'm encountering an issue where my program gets stuck and cannot read any more data from the feed after running for a few days. The code I'm using is:
for obj := range feed.C {
fmt.Println(obj.ID())
}
I'm not sure what's causing the issue, but it seems like the loop is unable to read all the objects in the feed. I've tried adding some error handling code, but it doesn't seem to help.
Has anyone else encountered a similar issue? Any suggestions for how I can troubleshoot this problem?
Thank you for your help!
Hello @duanjunxiao,
Can you use pprof (https://go.dev/blog/pprof) there and share it with us so we can track exactly where it gets stuck?
Thank you and sorry for the inconvenience.
Regards, Marta