Skip to main content
July 7, 2022
Question

Connect can't find op://vault/item/file.json

  • July 7, 2022
  • 1 reply
  • 74 views

When using a connect server and trying to reference a file from the OP cli, it errors:

Specifically
op inject -i service-account.json.tmpl -o service-account.json

with {{ op://vault/demo-api/service-account.json }} in the template.

service-account.json is saved as a file attachment in the demo-api item in the vault.

[ERROR] 2022/07/07 15:55:55 could not read secret op://vault/demo-api/service-account.json: could not find field or file service-account.json on item demo-api in vault vault

This works appropriately when using an account, but not when using connect.


1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Browser:_ Not Provided
Referrer: forum-search:https://1password.community/search?Search=Linux%20CLI%20file

1 reply

July 12, 2022

Hey @jbgbrad, thank you for reaching out!

What versions of CLI and Connect are you currently running?

Best,
Horia