kirsle / follow-sync

Re-synchronize your Instagram following list (or: unfollow everyone who doesn't follow you back)
GNU General Public License v2.0
19 stars 4 forks source link

Unexpected end of JSON input #2

Closed davisonio closed 7 years ago

davisonio commented 7 years ago

Thanks for this great script, I'm using it on a smaller account of mine but when I try it on a bigger account I get this error:

2017/03/06 10:33:46 Beginning the data collection process...
2017/03/06 10:33:46 Collecting your 'Followers' list
panic: unexpected end of JSON input

goroutine 1 [running]:
github.com/kirsle/follow-sync/src.(*App).getFollowers(0xc42004df18)
    /Users/craig/go/src/github.com/kirsle/follow-sync/src/insta.go:30 +0x251
github.com/kirsle/follow-sync/src.(*App).Run(0xc42004df18)
    /Users/craig/go/src/github.com/kirsle/follow-sync/src/app.go:45 +0xf3
main.main()
    /Users/craig/go/src/github.com/kirsle/follow-sync/main.go:23 +0x1aa
kirsle commented 7 years ago

This looks like an upstream issue in github.com/ahmdrz/goinsta; my code just panics with the error message given by their API here.

davisonio commented 7 years ago

Ah I see, I'll open an error there then.