Random (400) Bad Requests

kdo
kdo
Community Member

I've been working on integration between 1password-cli and Xcode Cloud. Whilie I succeeded and got everything up and running I've started randomly getting validation 400 errors etc.

The cli is being given access to a vault via a service account just like your docs say. It's worth mentioning that I don't have any issue running the cli tool using the service account token on my machine.

Here is the output:

[ERROR] 2024/02/22 09:08:53 (400) Bad Request: The structure of request was invalid.
[ERROR] 2024/02/22 09:08:54 could not read secret op://VAULT_NAME/XcodeConfig-Development/Development.xcconfig: error initializing client: Authentication: (failed to auth.SRPVerifyWithHeaders), Network: (failed to request.DoEncryptedWithHeaders), Validation: (400) (Bad Request), The structure of request was invalid.


1Password Version: 2.24.0
Extension Version: Not Provided
OS Version: macOS Sonoma 14.3.1 (23D60)
Browser: Not Provided

Comments

  • jonahb
    jonahb
    Community Member

    Same here. For me it was working consistently all day (I executed the command below about 15 times over 8 hours), and then was consistently not working. I did signin and signout but that had no effect ... still consistently did not work.

    Perhaps this is throttling?

    & "C:\Program Files\1Password CLI\op.exe" --version                                                                                                                       
    2.27.0
    
    & "C:\Program Files\1Password CLI\op.exe" "service-account" "create" "Redacted 45360326"  "--expires-in" "15m" "--vault" "Redacted:read_items" --debug
    
    3:51PM | DEBUG | Session delegation enabled
    3:51PM | DEBUG | NM request: NmRequestAccounts
    3:51PM | DEBUG | NM response: Success
    3:51PM | DEBUG | NM request: NmRequestAccounts
    3:51PM | DEBUG | NM response: Success
    3:51PM | DEBUG | account not signed in, filter= latest_signin_user=LXUX...Redacted...
    3:51PM | DEBUG | NM request: NmRequestAccounts
    3:51PM | DEBUG | NM response: Success
    3:51PM | DEBUG | NM request: NmRequestAuthorization
    3:51PM | DEBUG | NM response: Success
    3:51PM | DEBUG | NM request: NmRequestAccounts
    3:51PM | DEBUG | NM response: Success
    3:51PM | DEBUG | NM request: NmRequestDelegatedSession
    3:51PM | DEBUG | NM response: Success
    3:51PM | DEBUG | NM request: NmRequestAccounts
    3:51PM | DEBUG | NM response: Success
    3:51PM | WARN | InitDefaultCache: failed to establish RPC connection with daemon: You can't use caching on Windows.
    [ERROR] 2024/05/07 15:51:07 (400) Bad Request: The structure of request was invalid.
    

    Version:

    1Password for Windows 8.10.30 (81030032)
    
This discussion has been closed.