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

panic after entering 2FA-code #311

Closed
indika-dev opened this issue Aug 14, 2024 · 2 comments
Closed

panic after entering 2FA-code #311

indika-dev opened this issue Aug 14, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@indika-dev
Copy link

Describe the bug
Our Slackworkspace is secured by 2FA. I started slackdump with automatic login and after entering username/password and 2FA-code, I'll get always a runtime error.

Authentication type (please read)
Automatic Login with username/password and 2FA

To Reproduce
Steps to reproduce the behavior:

  1. slackdump
  2. enter workspacename,...
  3. enter username
  4. enter password
  5. enter 2FA-code
  6. runtime error occurs

Expected behavior
slackdump continues without runtime error

Output

slackdump
Slackdump 2.5.9 (commit: 4c6cfcf) built on: 2024-07-25T12:08:01Z
Logging in to Slack, depending on your connection speed, it will take 15-30 seconds...
panic: runtime error: index out of range [6] with length 6

goroutine 1 [running]:
github.com/rusq/slackauth.enterCode(0xc0001d4210, 0xccfc1a?)
/home/runner/go/pkg/mod/github.com/rusq/[email protected]/login_auto.go:195 +0x1d8
github.com/rusq/slackauth.Headless.func2(0x103df40?)
/home/runner/go/pkg/mod/github.com/rusq/[email protected]/login_auto.go:146 +0xc5
github.com/go-rod/rod.(*RaceContext).Do.func1()
/home/runner/go/pkg/mod/github.com/go-rod/[email protected]/query.go:447 +0x218
github.com/go-rod/rod/lib/utils.Retry({0x1040e70, 0xc0003d40f0}, 0xc000304a20, 0xc000446880)
/home/runner/go/pkg/mod/github.com/go-rod/[email protected]/lib/utils/sleeper.go:140 +0x31
github.com/go-rod/rod.(*RaceContext).Do(0xc000446d78)
/home/runner/go/pkg/mod/github.com/go-rod/[email protected]/query.go:440 +0x7c
github.com/rusq/slackauth.Headless({0x1040e38, 0xc0003baea0}, {0x7fff8cc5bbb5, 0xf}, {0xc00030c2d0, 0x21}, {0xc000029110, 0x14}, {0xc000519008, 0x1, ...})
/home/runner/go/pkg/mod/github.com/rusq/[email protected]/login_auto.go:151 +0xf16
github.com/rusq/slackdump/v2/auth.headlessFlow({0x1040e38, 0xc0003baea0}, {0x7fff8cc5bbb5, 0xf}, {0x1042080, 0xc0000bce08})
/home/runner/work/slackdump/slackdump/auth/rod.go:122 +0x205
github.com/rusq/slackdump/v2/auth.NewRODAuth({0x1040e38, 0xc0003baea0}, {0xc000519320, 0x1, 0xc0005191a8?})
/home/runner/work/slackdump/slackdump/auth/rod.go:93 +0x297
github.com/rusq/slackdump/v2/internal/app.SlackCreds.AuthProvider({{0x0?, 0xc0005194b8?}, {0x0?, 0x886512?}}, {0x1040e38, 0xc0003baea0}, {0x7fff8cc5bbb5, 0xf}, 0x0, 0x0)
/home/runner/work/slackdump/slackdump/internal/app/auth.go:81 +0x315
github.com/rusq/slackdump/v2/internal/app.InitProvider({0x1040e38?, 0xc0003bae70?}, {0xc0000ea4a0, 0x1f}, {0x7fff8cc5bbb5, 0xf}, {0x103e680, 0xc000044140}, 0x0, 0x0)
/home/runner/work/slackdump/slackdump/internal/app/auth.go:155 +0x302
main.run({_, _}, {{{0x1, 0x0}, {0xc00009f890}, {{0xc000464020, 0x8}, {0xca5af7, 0x4}, {0x0, ...}}, ...}, ...})
/home/runner/work/slackdump/slackdump/cmd/slackdump/main.go:146 +0x28f
main.main()
/home/runner/work/slackdump/slackdump/cmd/slackdump/main.go:110 +0x526

Desktop:

  • OS: Ubuntu 22.04
  • Slackdump Version: 2.5.9
@rusq
Copy link
Owner

rusq commented Aug 14, 2024

Hello, use Email (manual) for now, the confirmation seems to be broken. Or, I'd be grateful if you're able to fix it, PRs are always welcomed.

@rusq rusq added the bug Something isn't working label Aug 15, 2024
rusq added a commit that referenced this issue Aug 15, 2024
rusq added a commit that referenced this issue Aug 15, 2024
@rusq
Copy link
Owner

rusq commented Aug 15, 2024

Hey @indika-dev , this is fixed in v2.5.10, which should build in 5-10 minutes.

@rusq rusq closed this as completed Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants