"(ERROR) json: cannot unmarshal number..."

cwb71cwb71
edited September 6 in CLI

I seem to be logged in okay, but almost every command I try results in:

[LOG] 2017/09/06 13:09:00 (ERROR) json: cannot unmarshal number 68719476495 into Go struct field UserOverview.permissions of type int

Any ideas?


1Password Version: CLI 0.1
Extension Version: Not Provided
OS Version: macOS 10.12.6
Sync Type: Not Provided

Comments

  • cohixcohix

    AgileBits Team Member

    @cwb71 Good catch. I've tracked that issue down, we'll get that fixed up ASAP.

    Could you please let me know which commands it happens with?

  • Hm, sure:

    op list documents: broken
    op list events: works
    op list groups: works
    op list items: broken
    op list templates: works
    op list users: works
    op list vaults: broken

    op get account: works
    op get document: broken
    op get item: broken
    op get template: works
    op get totp: broken
    op get user: works
    op get vault: broken

    Shall I go on?

    Any idea what's going on here? Any work around?

    Thanks,
    Craig

  • +1
    same errors

  • rickfillionrickfillion Junior Member

    AgileBits Team Member

    I find it interesting that we didn't run into this issue ourselves while testing this. It seems like it's due to you having certain permissions set on your account, but I'm surprised that none of our test accounts had these set.

    The workaround for the time being would be to create another user with fewer permissions and using that user as the CLI user. That's not a very fun workaround though. We'll get the issue resolved and a new build out.

    Rick

  • cohixcohix

    AgileBits Team Member

    @cwb71 @robertovalerio We've just pushed v0.1.1 with a fix for this issue. Please let me know if it's resolved for you!

    https://app-updates.agilebits.com/product_history/CLI

  • That worked, thank you for the quick resolution!

  • cohixcohix

    AgileBits Team Member

    Any time!

Leave a Comment