vt-go icon indicating copy to clipboard operation
vt-go copied to clipboard

Program gets stuck and cannot read data after running for a few days

Open duanjunxiao opened this issue 1 year ago • 1 comments

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!

duanjunxiao avatar May 05 '23 01:05 duanjunxiao

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

mgmacias95 avatar May 08 '23 17:05 mgmacias95