Skip to main content
April 25, 2022
Question

Couldn't connect to the sign-in address you provided

  • April 25, 2022
  • 15 replies
  • 1448 views

Hi
I am trying with CLI (version 2.0.0) on GCP cloud run and getting below error
Couldn't connect to the sign-in address you provided. Check the address and your network connection, then try again
No accounts configured for use with 1Password CLI.
You can either:
- Sign in with biometric unlock; see https://developer.1password.com/docs/cli/get-started/#sign-in for details.
- - Add an account manually with op account add; see op account add --help for details.

I am trying command

eval$(echo "password" | op account add --signin --address xyz.1password.com --email mailto:myemail@xyz.com --secret-key A5T-)

This is working perfectly fine when I run it on local mac machine with OP CLI .


1Password Version: 2.0.0
Extension Version: 2.0.0
OS Version: GCP Cloud Run
Referrer: forum-search:https://1password.community/search?Search=Couldn't%20connect%20to%20the%20sign-in%20address%20you%20provided

15 replies

April 27, 2022

do I need to set OP_DEVICE before running script for add or signin ?

I think what you have there being set is fine. Do you mind trying this command from inside the cloud instance and let me know what the response is? It should print the http response code of trying to reach the signin address page.

curl -o /dev/null --silent -Iw '%{http_code}' https://www.<1password signin address>

If that call does not return a 200, there may be some networking issues to resolve.

April 28, 2022

thanks for the reply I tried the curl and still its same error
even-though the curl is returning 200 (pls see here).
just for info - I am running this in cloud run (which is serverless)

2022-04-28 12:37:45.727 CESTInside success script
Default
2022-04-28 12:37:45.827 CEST4 qipakwsw77hx6pjpezhqnu2rq
Default
2022-04-28 12:37:45.827 CEST
Default
2022-04-28 12:38:18.527 CESTInside success script
Default
2022-04-28 12:38:18.527 CEST 200
Default
2022-04-28 12:38:47.026 CESTInside Error
Default
2022-04-28 12:38:47.027 CEST[ERROR] 2022/04/28 10:38:46 Couldn't connect to the sign-in address you provided. Check the address and your network connection, then try again.
Default
2022-04-28 12:38:47.027 CEST
Default
2022-04-28 12:38:52.928 CESTInside Error
Default
2022-04-28 12:38:53.427 CESTNo accounts configured for use with 1Password CLI.
Default
2022-04-28 12:38:53.427 CEST
Default
2022-04-28 12:38:53.427 CESTYou can either:
Default
2022-04-28 12:38:53.427 CEST - Sign in with biometric unlock; see https://developer.1password.com/docs/cli/get-started/#sign-in for details.
Default
2022-04-28 12:38:53.427 CEST - Add an account manually with op account add; see op account add --help for details.

April 28, 2022

Thanks for the info, I am going to add this issue to the ongoing investigation we have with the CLI not working on another serverless instance (AWS Lambda).

April 29, 2022

Thanks a lot .. please let me posted with solution or any progress with CLI on serverless instance (cloudrun or AWS Lambda). please share the link for AWS Lamba issue as well so I can track that

May 12, 2022

Hey @avinashdubeyse,
My colleague, @"Justin.Yoon_1P" has updated the ticket with the details of this report.
Alas, our issue tracking is handled internally. Here is a link to the original AWS Lambda thread, in the meantime:
https://1password.community/discussion/123194/cli-exiting-with-error-code-133-on-aws-lambda

We'll make sure to keep you updated, as we make progress with this.
Thank you for your patience.

Best,
Horia