majd / ipatool

Command-line tool that allows searching and downloading app packages (known as ipa files) from the iOS App Store
MIT License
5.34k stars 466 forks source link

Error after running any command #195

Closed aaronp613 closed 1 year ago

aaronp613 commented 1 year ago

What happened?

When I try using ipatool (tried reinstalling already) I get this error:

panic: cannot load cookies: invalid character '<' looking for beginning of value

The only commands that work are the help commands.

Version

2.1.1

Relevant log output

panic: cannot load cookies: invalid character '<' looking for beginning of value

goroutine 1 [running]:
github.com/majd/ipatool/v2/pkg/util.Must[...](0x0?, {0x1009aa000?, 0x14000180410?})
    /Users/runner/work/ipatool/ipatool/pkg/util/must.go:6 +0x54
github.com/majd/ipatool/v2/cmd.newCookieJar({0x1009ad020?, 0x14000193370?})
    /Users/runner/work/ipatool/ipatool/cmd/common.go:59 +0xb0
github.com/majd/ipatool/v2/cmd.initWithCommand(0x14000244000)
    /Users/runner/work/ipatool/ipatool/cmd/common.go:124 +0x29c
github.com/majd/ipatool/v2/cmd.Execute()
    /Users/runner/work/ipatool/ipatool/cmd/root.go:58 +0x104
main.main()
    /Users/runner/work/ipatool/ipatool/main.go:10 +0x1c
majd commented 1 year ago

I would be interested in how you managed to end up in a state where the cookies file is damaged. I would suggest you clean up the config folder

$ rm -rf ~/.ipatool

and authenticate again. See if you manage to reproduce the issue.

aaronp613 commented 1 year ago

seems to have fixed the issue