Hi, I am trying to execute a flyte workflow remote...
# ask-the-community
f
Hi, I am trying to execute a flyte workflow remotely as follows
Copy code
config = Config.auto(config_file="./custom_flyte_config_local.yaml")

remote = FlyteRemote(config=config, default_domain=FLYTE_DEFAULT_DOMAIN, default_project=FLYTE_DEFAULT_PROJECT)

flyte_wf = remote.fetch_workflow(name="flyte.my_wf", version="v1")
wheni specify the config file like that
Copy code
# custom_flyte_config_local.yaml

admin:
  # For GRPC endpoints you might want to use dns:///flyte.myexample.com
  endpoint: dns:///host.docker.internal:30080
  authType: Pkce
  insecure: true
logger:
  show-source: true
  level: 0
the service works fine and is able to fetch the right workflow. I want to be able to specify the endpoint in a environment variable instead of using a sperate config file. Like this or by specifying the env var in the dockerfile
Copy code
os.environ['FLYTE_PLATFORM_URL'] = 'dns:///host.docker.internal:30080'

config = Config.auto()
but this leads to the following error:
Copy code
2023-08-18 11:31:07 _InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
2023-08-18 11:31:07         status = StatusCode.UNAVAILABLE
2023-08-18 11:31:07         details = "failed to connect to all addresses; last error: UNKNOWN: 
2023-08-18 11:31:07 ipv4:192.168.65.254:30080: Ssl handshake failed: SSL_ERROR_SSL: 
2023-08-18 11:31:07 error:100000f7:SSL routines:OPENSSL_internal:WRONG_VERSION_NUMBER"
2023-08-18 11:31:07         debug_error_string = "UNKNOWN:failed to connect to all addresses; last 
2023-08-18 11:31:07 error: UNKNOWN: ipv4:192.168.65.254:30080: Ssl handshake failed: SSL_ERROR_SSL: 
2023-08-18 11:31:07 error:100000f7:SSL routines:OPENSSL_internal:WRONG_VERSION_NUMBER 
2023-08-18 11:31:07 {grpc_status:14, created_time:"2023-08-18T10:31:05.876453837+00:00"}"
2023-08-18 11:31:07 >
2023-08-18 11:31:07 
2023-08-18 11:31:07 The above exception was the direct cause of the following exception:
Any ideas on why this happens? even though the variable for endpoint should have the exact same value both ways.