https://prefect.io logo
Title
j

Johan Wåhlin

06/04/2021, 11:32 AM
Does anyone have experience with registering prefect flows from azure devops pipelines to a prefect server? The command: 'prefect register flow --file flows/test_flow.py --project batteriskip --skip-if-flow-metadata-unchanged' keeps getting the error "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=4200)" despite setting environment variable PREFECT__SERVER__ENDPOINT="http://myserverip:myport'" Same issue when using variables PREFECT__SERVER__HOST and PREFECT__SERVER__POST.
n

nicholas

06/04/2021, 1:45 PM
Hi @Johan Wåhlin - have you tried setting these in the machine's
~/.prefect/config.toml
configuration? Also I believe that second variable should be
PREFECT__SERVER__PORT
j

Johan Wåhlin

06/07/2021, 7:21 AM
Hi @nicholas - turned out this was a DevOps pipeline question and not a Prefect question. Setting the env-variables using 'bash' and not 'script' solved the issue. Thanks for your reply and advice though :)
😄 1