anaconda icon indicating copy to clipboard operation
anaconda copied to clipboard

No values in channel from GetFollowersListAll

Open ahmetb opened this issue 8 years ago • 2 comments

I can get other endpoints working but this GetFollowersListAll example is never returning any pages.

pages := api.GetFollowersListAll(nil)
for page := range pages {
    //Print the current page of followers
    fmt.Println(page.Followers, page.Error)
}

I have api.DisableThrottling() set, however I get the same result even without specifying anything. My process just hangs. 😟

ahmetb avatar Dec 14 '16 03:12 ahmetb

Possibly related to #186

klauspost avatar May 31 '17 09:05 klauspost

@ahmetb: The channel should now be closed if an error occurred. We still need to propagate the error properly, but at least you shouldn't end up with a dead-lock any longer. Can you see if that theory holds true?

muesli avatar Nov 18 '17 02:11 muesli