marcelja / facebook-delete

Fast facebook activity deletion
MIT License
1.28k stars 48 forks source link

index out of range [1] with length 1 #38

Closed chpstx closed 2 years ago

chpstx commented 2 years ago

I recently stumbled on this error prompt. It might be due to fb forcing me to change password.

I tried modifying debug_login.sh to input my new creds, but I can't make it work. (I don't/can't code)

PS C:\Users\jaspe\Documents\GitHub\facebook-delete> go run deleter.go -rateLimit 7000
Waiting 7000 ms before search and delete requests.
panic: runtime error: index out of range [1] with length 1

goroutine 1 [running]:
main.(*fbLogin).StoreProfileID(0xc000064400, {0xc0000fe000, 0xf232ff})
        C:/Users/jaspe/Documents/GitHub/facebook-delete/deleter.go:178 +0xbe
main.(*fbLogin).IsLoggedIn(0xc000064400)
        C:/Users/jaspe/Documents/GitHub/facebook-delete/deleter.go:172 +0x75
main.newFbLogin(0xc000056fb0)
        C:/Users/jaspe/Documents/GitHub/facebook-delete/deleter.go:113 +0x53
main.main()
        C:/Users/jaspe/Documents/GitHub/facebook-delete/deleter.go:522 +0x289
exit status 2
PS C:\Users\jaspe\Documents\GitHub\facebook-delete>
hugothimonier commented 2 years ago

I had the same issue, I put a too high limit on -rateLimit and I ended up having to change my password. Now, I can no longer make your brillant code work.

jamesbretz commented 2 years ago

I was able to delete the hidden file ".go-cookies" from my OSX user folder and start the login process again after getting this error.

AlexKalopsia commented 2 years ago

Also getting this issue. Seems to be related to reading local cookies.

I can also confirm that removing .go-cookies fixes the issue