Forum Discussion

ftpd's avatar
ftpd
Occasional Contributor
3 years ago

op version two can't 'get' certain records

Hi.
I'm trying to migrate from op CLI v1 to v2, but I've encountered this problem, that some records aren't recognized.

I'm sourcing a 'script' with lines like:

export TF_VAR_some_password="$(op2 item get --cache --fields password some-id)"

and it works for the half of my records - 19 are fine, 19 are not. The 'failed' records are always the same. It looks like that:
```
$ op2 item get good-id
ID: good-id
Title:
Vault: RedactedVault ()
Created: 1 year ago
Updated: 1 year ago by
Favorite: false
Tags: prod,rds
Version: 1
Category: LOGIN
Fields:
username:
password:

$ op2 item get bad-id
[ERROR] 2023/01/16 10:54:13 (404) Not Found: The requested resource was not found.
```

It works fine with 1Password CLI client version 1, both good-id and bad-id produce a valid json with my data.

Versions:

```
$ op2 --version
2.12.0

$ op --version
1.12.4
```

Any ideas, what I'm missing here?


1Password Version: 8.9.13
Extension Version: -
OS Version: Gentoo Linux, kernel 6.1.4
Browser:_ -

12 Replies