You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 25, 2023. It is now read-only.
The following code fails with a nil pointer exception:
searchResult, err := ig.Search.User(searchUsername)
if err != nil {
return err
}
if len(searchResult.Users) == 0 {
return errors.New("Specified user is not found by instagram search: " + searchUsername)
}
followers := searchResult.Users[0].Following()
if followers == nil {
return errors.New("users.Following() returned nil object")
}
err := followers.Error()
if err != nil {
fmt.Println("####", err) // This never prints
}
for followers.Next() {
for _, u := range followers.Users {
// Do something
// ...
}
}
The following code fails with a nil pointer exception:
It fails with the following:
The text was updated successfully, but these errors were encountered: