Open cookiejul opened 1 month ago
Are you seeing the issue for any streaming or under specific conditions? Are there any logs or tracebacks available for when the issue starts occurring?
No logs and no errors. Here's my code. Quite straightforward actually
r, _ := mira.Init(mira.ReadCredsFromFile("login.conf"))
c, _ := r.Subreddit("news").StreamSubmissions()
for {
post := <-c
if post.GetUrl() != "" {
fmt.Printf("[%s] Creating post for: %s with links: %s", post.GetSubreddit(), post.GetTitle(), post.GetUrl())
sendPostToDb(post)
}
}
It just stops streaming after 30 mins. Do you have this issue? It's quite hard to debug because it doesn't throw any errors at all
Hi @thecsw, sorry to have to bother you again. Do you happen to know the reason why it stops streaming? Were you able to replicate the issue on your side?
Hello, @cookiejul! I'm afraid I don't have the time nowadays to look more in-depth into it, as I actually no longer even use reddit nor have an easy access to any accounts or APIs. This might need to be an issue that sees a solution from the community or wait until I can get to it.
I've been running a startup for a couple of years using mira's streaming and it was always working fine. I have multiple thoughts on how I would start triaging it:
Hopefully those points above introduce some ways one can go figuring it out and/or replicating the issue. Thanks
Sounds good. I'll look into it and see if I can find out the root cause of this issue. If you don't mind sharing, what is your startup doing? Would love to check it out
Long time ago, no longer active, it was a trading floor for meme subreddits, where one could buy and sell memes—there is a history page on https://sandyuraz.com/projects/memeinvestor_bot/
Thanks for looking into the issue!
How can I resolve this issue? Seems like a similar issue with #10