what host to use when connecting to OP Connect server deployed locally using Docker?

ecogs
ecogs
Community Member
edited September 2021 in Secrets Automation

I am trying to use the Python SDK and follow the steps listed here: https://github.com/1Password/connect-sdk-python

I have deployed the docker container using the default docker-compose.yaml file from this page: https://support.1password.com/connect-deploy-docker/#step-2-deploy-a-1password-connect-server. The container is up and running as expected.

The Python SDK documentation says that by default the host server should be "localhost:8080," but when I try to connect, I get the error:
"InvalidSchema: No connection adapters were found for 'localhost:8080/v1/vaults/TEST/items'"

Here is my full code -it's cribbed from the example script in the connect-sdk-python repo: https://gist.github.com/emilycogsdill/78503cb675b0a79d93eba179a4135ca8

Is there something obvious I am doing wrong here? Would really appreciate any advice. Thank you in advance!

EDIT TO ADD: I just tried 'http://172.20.0.1:8080' as my connect host, and I got a connection timeout instead of InvalidSchema. Is that progress?


1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided

Comments

  • ecogs
    ecogs
    Community Member

    Some updates:

    1) we figured out that the hostname needs to be "http://localhost:8080". It would be nice if the documentation were clarified to include the entire host instead of just the stuff after http://.

    2) Separately, we are now running into an issue that seems to be stemming from the fact I am using a macbook with an M1 chip, which is causing the deployed docker container not to function correctly. If anyone has encountered this same issue we would really appreciate advice about how to proceed.

  • David_ag
    edited September 2021

    Hi there!

    Glad you were able to figure out the issue. It looks like my colleague updated our docs recently to include the full URL for localhost usage.

    As far as M1 support: We have an open request for M1 support in this thread: https://1password.community/discussion/121880/1password-connect-for-arm64 . I recommend following that for updates.

This discussion has been closed.