Protect what matters – even after you're gone. Make a plan for your digital legacy today.
Forum Discussion
RomiC
2 years agoNew Contributor
1Password CLI can not read the secret
Hi!
I'm trying to automate some of my workflows using 1password-cli utility (v2.26.1), but from time to time it fails w/ pretty weird error:
[ERROR] 2024/04/01 12:02:23 could not read secret op://Personal/My Secret Note/notesPlain: error initializing client: Get "https://my.1password.com/api/v2/account/keysets?__t=1711962143.990": write tcp [2a01:5a8:423:88e3:d1d4:7415:6922:f900]:62600->[2600:1f18:60d5:4e04:2c8:379d:c287:d24b]:443: write: socket is not connected
At the same time the web-site https://my.1password.com is accessible via browser. Moreover, mentioned address is available via curl:
```
➜ curl -v https://my.1password.com/api/v2/account/keysets%5C?__t%5C=1711962568.901
* Trying [2600:1f18:60d5:4e04:2c8:379d:c287:d24b]:443...
* Trying 34.234.108.231:443...
* Connected to my.1password.com (34.234.108.231) port 443
* ALPN: curl offers h2,http/1.1
* (304) (OUT), TLS handshake, Client hello (1):
* CAfile: /etc/ssl/cert.pem
* CApath: none
* (304) (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN: server accepted h2
* Server certificate:
* subject: CN=.1password.com
* start date: Jun 24 00:00:00 2023 GMT
* expire date: Jul 22 23:59:59 2024 GMT
* subjectAltName: host "my.1password.com" matched cert's ".1password.com"
* issuer: C=US; O=Amazon; CN=Amazon RSA 2048 M02
* SSL certificate verify ok.
* using HTTP/2
* [HTTP/2] [1] OPENED stream for https://my.1password.com/api/v2/account/keysets?__t=1711962568.901
* [HTTP/2] [1] [:method: GET]
* [HTTP/2] [1] [:scheme: https]
* [HTTP/2] [1] [:authority: my.1password.com]
* [HTTP/2] [1] [:path: /api/v2/account/keysets?__t=1711962568.901]
* [HTTP/2] [1] [user-agent: curl/8.4.0]
* [HTTP/2] [1] [accept: /]
GET /api/v2/account/keysets?__t=1711962568.901 HTTP/2
Host: my.1password.com
User-Agent: curl/8.4.0
Accept: /< HTTP/2 401
< date: Mon, 01 Apr 2024 09:11:20 GMT
< content-type: text/plain; charset=utf-8
< content-length: 3
< cache-control: max-age=60, no-cache, no-store
< content-security-policy: default-src 'none'; form-action 'none'; frame-ancestors 'none'; report-uri https://csp.1passwordservices.com/report?tags=b5_prd; report-to csp-endpoint; script-src https://app.1password.com 'wasm-unsafe-eval' 'sha256-KWsQ9f8Zx0pe3RbREHnIqiaCmx+Up0a3pyONYoO7EMA=' 'sha256-Bo5NEvffQCJLgijxrWRZQYy6yQjbUcf0OlT9SO4IDtY=' 'sha256-/na20SQr5HMQISTsR/Mk0S/zgfd2zeLNY9IVoDqoWoY='; style-src https://app.1password.com 'sha256-dHlRZbIBjBXo9m7/kOtIREHDoVNQWPIOPaIan9Q5iKA='; font-src https://app.1password.com; img-src data: blob: https://c.1password.com https://cache.agilebits.com https://app.1password.com https://a.1passwordusercontent.com/ https://a.1passwordusercontent.ca https://a.1passwordusercontent.eu https://a.1passwordentusercontent.com https://avatars.slack-edge.com https://mkt.1password.co; child-src 'self' https://.duosecurity.com https://.duofederal.com https://map.1passwordservices.com https://billing.1passwordservices.com https://duo.1passwordservices.com; worker-src 'self'; frame-src 'self' https://.duosecurity.com https://.duofederal.com https://map.1passwordservices.com https://billing.1passwordservices.com https://duo.1passwordservices.com https://1password.com https://survey.1passwordservices.com https://email-providers.1passwordservices.com; connect-src 'self' https://watchtower.1password.com https://api.pwnedpasswords.com https://app.1password.com wss://b5n.1password.com https://f.1passwordusercontent.com/ .1password.com https://.1password.ca https://.1password.eu https://.ent.1password.com https://a.1passwordusercontent.com/ https://contact.1passwordservices.com https://flow.1passwordservices.com https://firebaseinstallations.googleapis.com https://fcmregistrations.googleapis.com https://web-ui-sentry.1passwordservices.com https://crl.1passwordservices.com; upgrade-insecure-requests
< cross-origin-opener-policy: same-origin
< permissions-policy: interest-cohort=()
< referrer-policy: no-referrer
< report-endpoints: csp-endpoint ="https://csp.1passwordservices.com/report?tags=b5_prd"
< report-to: {"endpoints":[{"url":"https://csp.1passwordservices.com/report?tags=b5_prd%22%7D%5D,%22group%22:%22csp-endpoint%22,%22max_age%22:604800}
< strict-transport-security: max-age=31536000; includeSubDomains; preload
< x-content-type-options: nosniff
< x-frame-options: DENY
<
{}
```
1Password Version: 1Password for Mac 8.10.28 (81028034)
Extension Version: Not Provided
OS Version: macOS 14.3.1
Browser: Arc 1.36.0
No RepliesBe the first to reply