Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: failed to format output: consume [attachment] ... #84

Open
CapaBE opened this issue Oct 18, 2022 · 0 comments
Open

Error: failed to format output: consume [attachment] ... #84

CapaBE opened this issue Oct 18, 2022 · 0 comments

Comments

@CapaBE
Copy link

CapaBE commented Oct 18, 2022

(my goal is to retrieve the chat messages, not the media or attachments, can I decrypt this without the attachments to avoid the error below, since it seems to be related to attachments)

I failed to restore a Signal backup with this program:

OS: Win10
Version used: v0.1.7-alpha.2 (pre built binary)

Command used:
signal-back_windows_amd64 format -f XML -o backup-android.xml -P password.txt -v backupfile.backup
Then getting this error:
error: failed to format output: consume [attachment]: unable to process attachment: can't read attachment of length 0

Output file is generated but is empty

I also tried it with the latest version v0.1.6 and this is the result:

panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x0 pc=0x56c1f3]

goroutine 1 [running]:
github.com/xeals/signal-back/types.(*BackupFile).DecryptAttachment(0xc0420f20e0, 0xc0420886c0, 0x606fe0, 0x708d98, 0x0, 0x0)
/home/xeal/.local/share/go/src/github.com/xeals/signal-back/types/backup.go:137 +0x133
github.com/xeals/signal-back/cmd.XML(0xc0420f20e0, 0x606e40, 0xc042092008, 0x3, 0x1)
/home/xeal/.local/share/go/src/github.com/xeals/signal-back/cmd/format.go:152 +0x405
github.com/xeals/signal-back/cmd.glob..func4(0xc0420a8420, 0x0, 0x0)
/home/xeal/.local/share/go/src/github.com/xeals/signal-back/cmd/format.go:67 +0x416
github.com/xeals/signal-back/vendor/github.com/urfave/cli.HandleAction(0x5a6140, 0x5ef668, 0xc0420a8420, 0xc0420a2100, 0x0)
/home/xeal/.local/share/go/src/github.com/xeals/signal-back/vendor/github.com/urfave/cli/app.go:490 +0xcf
github.com/xeals/signal-back/vendor/github.com/urfave/cli.Command.Run(0x5e20ed, 0x6, 0x0, 0x0, 0x0, 0x0, 0x0, 0x5e96cb, 0x1f, 0x5ee97c, ...)
/home/xeal/.local/share/go/src/github.com/xeals/signal-back/vendor/github.com/urfave/cli/command.go:210 +0xa3d
github.com/xeals/signal-back/vendor/github.com/urfave/cli.(*App).Run(0xc0420a41a0, 0xc042098000, 0x8, 0x8, 0x0, 0x0)
/home/xeal/.local/share/go/src/github.com/xeals/signal-back/vendor/github.com/urfave/cli/app.go:255 +0x6a7
main.main()
/home/xeal/.local/share/go/src/github.com/xeals/signal-back/main.go:52 +0x31e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant