Forum Discussion

mickael's avatar
mickael
Dedicated Contributor
4 years ago

op cli crash on account get

Hi,

This looks like new. op crash on account get call.

```
op --version
2.6.0

op account get --account="MYACCOUNTUUID"
panic: value method go.1password.io/op/core/b5/api/credentials.SigninSRPComputedXCredentials.GetUserUUID called using nil *SigninSRPComputedXCredentials pointer

goroutine 1 [running]:
go.1password.io/op/core/b5/api/credentials.(*SigninSRPComputedXCredentials).GetUserUUID(0x0, 0x14000ac8000, 0x1400025f3e8)
:1 +0x64
go.1password.io/op/core/b5/api.SigninWithCredentialsAndHeaders(0x1036f4b98, 0x0, 0x14000124a20, 0x1a, 0x103492cc8, 0xd, 0x103487a7a, 0x7, 0x1400011ef30, 0x22, ...)
/Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/core/b5/api/signin.go:38 +0x78
go.1password.io/op/core/b5/api.SigninWithCredentials(...)
/Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/core/b5/api/signin.go:33
go.1password.io/op/core/b5/api.(*baseAuthController).Authenticate(0x14000156240, 0x0, 0x0)
/Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/core/b5/api/authcontroller.go:112 +0x100
go.1password.io/op/core/b5/api.(*baseAuthController).Session(0x14000156240, 0x0)
/Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/core/b5/api/authcontroller.go:90 +0x30
go.1password.io/op/core/b5/api/request/endpoint.Endpoint.Request(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1034995b7, 0x17, ...)
/Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/core/b5/api/request/endpoint/endpoint.go:23 +0x38
go.1password.io/op/core/b5/api.(*KeysetsAPI).GetAllEncrypted(0x14000ac4020, 0x1032cf89c, 0x103b1c120, 0x14000ac4040)
/Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/core/b5/api/keysets.go:32 +0xf0
go.1password.io/op/core/b5/api.(*KeysetsAPI).getAll(0x14000ac4020, 0x140008f8070, 0x1400025f958, 0x1032e231c, 0x10)
/Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/core/b5/api/keysets.go:51 +0x28
go.1password.io/op/core/b5/api.NewKeysetController(0x1036ed7f8, 0x14000156240, 0x0, 0x0, 0x10364a360, 0x1400011de80, 0x0)
/Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/core/b5/api/keysetcontroller.go:47 +0xd4
go.1password.io/op/core/b5.NewAPIWithAuthControllerAndCache(0x1036ed7f8, 0x14000156240, 0x140001135a0, 0x0, 0x0, 0x140001135a0)
/Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/core/b5/api.go:75 +0x80
go.1password.io/op/core/b5.NewAPIWithSessionAndCache(0x14000126700, 0x140001135a0, 0x1036e1488, 0x140001930d0, 0x14000126700)
/Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/core/b5/api.go:62 +0xa4
go.1password.io/op/op-cli/command.initSessionFunc.func1(0x1400025fcd8, 0x1030d15ac, 0x1400030ca00)
/Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/command/root.go:503 +0xc50
go.1password.io/op/op-cli/command.(*accountGetCommand).Run(0x14000112690, 0x0, 0x1400025fcc0)
/Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/command/account_get.go:40 +0x2c
go.1password.io/op/op-cli/command.Bind.func3(0x14000177340, 0x14000113190, 0x0, 0x1, 0x0, 0x0)
/Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/command/command.go:71 +0x70
github.com/spf13/cobra.(*Command).execute(0x14000177340, 0x14000113180, 0x1, 0x1, 0x14000177340, 0x14000113180)
/Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/vendor/github.com/spf13/cobra/command.go:844 +0x320
github.com/spf13/cobra.(*Command).ExecuteC(0x103ae3100, 0x10347be28, 0x103491078, 0xa)
/Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/vendor/github.com/spf13/cobra/command.go:952 +0x258
go.1password.io/op/op-cli/command.Execute(0x0)
/Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/command/root.go:314 +0x50
main.main()
/Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/main.go:15 +0x44
```


1Password Version: Not Provided
Extension Version: Not Provided
OS Version: 12.5
Browser:_ Not Provided

6 Replies

  • mickael's avatar
    mickael
    Dedicated Contributor

    Yeah, it looks like it was a temporary failure. Things are working correctly now. Strange.

  • andi_t_1P's avatar
    andi_t_1P
    Icon for 1Password Team rank1Password Team

    Follow up mickael: could you please provide more information about the context in which you got this error. This would help us reproducing this error faster as not all calls to op account get --acount="some_id" cause a panic.

    Thanks!

  • andi_t_1P's avatar
    andi_t_1P
    Icon for 1Password Team rank1Password Team

    Hi mickael. Thanks for bringing this up, we have filed an internal issue and will get back to you.

    Best,
    Andi