Does anyone have experience with registering prefe...
# prefect-server
j
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
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
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