ChimeraCoder / anaconda

A Go client library for the Twitter 1.1 API
MIT License
1.14k stars 247 forks source link

No values in channel from GetFollowersListAll #169

Open ahmetb opened 7 years ago

ahmetb commented 7 years ago

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. 😟

klauspost commented 7 years ago

Possibly related to #186

muesli commented 6 years ago

@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?