Getting started with 1Password for your growing team, or refining your setup? Our Secured Success quickstart guide is for you.
Forum Discussion
lieverse
3 years agoOccasional Contributor
CLI error "unexpected response from 1P" when 1Password itself is still locked
Hi,
When running op run I regularly get following error:
[ERROR] 2023/05/24 15:57:20 error initializing client: RequestDelegatedSession: received unexpected response from 1Password app. Pl...
lieverse
3 years agoOccasional Contributor
Hi @Joris_1P , sorry for the delayed update.
The case with the 1P app locked is 100% reproducible.
When running op --debug read op://vault/item/field
with the 1P app locked, I get
5:52PM | DEBUG | Session delegation enabled
5:52PM | DEBUG | NM request: NmRequestAccounts
5:52PM | DEBUG | NM response: Success
5:52PM | DEBUG | NM request: NmRequestAccounts
5:52PM | DEBUG | NM response: Success
5:52PM | DEBUG | account not signed in, filter= latest_signin_user=*****
5:52PM | DEBUG | NM request: NmRequestAccounts
5:52PM | DEBUG | NM response: Success
5:52PM | DEBUG | NM request: NmRequestAuthorization
5:52PM | DEBUG | NM response: Success
5:52PM | DEBUG | NM request: NmRequestAccounts
5:52PM | DEBUG | NM response: Notification
5:52PM | DEBUG | NM response: Success
5:52PM | DEBUG | NM request: NmRequestDelegatedSession
5:52PM | WARN | Cannot unmarshal into NmhResponse: unexpected end of JSON input
[ERROR] 2023/06/01 17:52:14 could not read secret op://vault/item/field: error initializing client: RequestDelegatedSession: received unexpected response from 1Password app. Please make sure 1Password CLI and the 1Password app are up-to-date.
The OS's authentication prompt occurs after the NmRequestAuthorization
message, and I did successfully authenticate.
Paul