It’s Cybersecurity Awareness Month! Join our interactive training session, or learn about security and AI from 1Password experts.
Forum Discussion
Former Member
4 years agoOP CLI - Unable to build a list of item categories
Hey everyone,
after updating the OP CLI to 2.7.0 and switching to a other docker image I'm getting after some successful op create login attempts the message:
Unable to build a list of item ...
cronekorkn
4 years agoNew Contributor
Hi Andi,
thanks for looking into this.
I can confirm it being a rate limiting issue. When i get the Unable to build a list of item categories
error and run something like op item template get login
afterwards, i actually get an appropriate error message:
[ERROR] 2022/09/09 18:07:33 (429) Too Many Requests: Too many requests. Your client has been rate-limited.
0.) After a break of multiple hours, i ran it again and managed to create 167 items. My script creates and deletes items by turns and after the create actions start to fail, the delete still works. So delete is indeed not affected by that rate limit.
1.) The command is a loop calling something like this (no pipe):
op item create \
--category 'login' \
--title 'some title' \
--url 'http://some.url' \
--tags 'sometag,some:othertag' \
--account '************************' \
--vault '**********************' \
username='api' \
password='*******************'
I also tried avoiding the category lookup by writing the login template to a temporary file and using --template 'temp/file/path'
instead of --category 'login'
, but to no avail.
Thanks for you help,
Martin