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

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

Open
duanjunxiao opened this issue May 5, 2023 · 1 comment

Comments

@duanjunxiao
Copy link

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!

@mgmacias95
Copy link
Member

mgmacias95 commented May 8, 2023

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

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

2 participants