bumpy-plumber-6824
04/18/2024, 9:29 PMFLYTE_PLATFORM_URL=<internal.flyte.url> pyflyte get launchplan ...
does not seem to accept FLYTE_PLATFORM_URL
. See error below. I have used the same url from python using Config.for_endpoint(...)
, which works.
Questions:
1. Is the env var FLYTE_PLATFORM_URL
correct?
2. How can i debug where the problem lies?
% FLYTE_PLATFORM_URL=<internal.flyte.url> pyflyte get launchplan
Failed with Exception Code: SYSTEM:Unknown
RPC Failed, with Status: StatusCode.UNAVAILABLE
details: failed to connect to all addresses; last error: UNKNOWN: ipv4:127.0.0.1:30080: Failed to connect to remote host: Connection refused
Debug string UNKNOWN:Error received from peer {created_time:"2024-04-17T14:10:42.99254-07:00", grpc_status:14, grpc_message:"failed to connect to all addresses; last error: UNKNOWN: ipv4:127.0.0.1:30080: Failed to connect to remote host: Connection refused"}
average-finland-92144
04/18/2024, 9:37 PM(base) ➜ FLYTE_PLATFORM_URL=localhost:8089 pyflyte get launchplan
LaunchPlans for
flytesnacks/development
┏━━━━━━┳━━━━━━━━━┳━━━━━━━┳━━━━━━━━━━┓
┃ Name ┃ Version ┃ State ┃ Schedule ┃
┡━━━━━━╇━━━━━━━━━╇━━━━━━━╇━━━━━━━━━━┩
└──────┴─────────┴───────┴──────────┘
average-finland-92144
04/18/2024, 9:38 PMinternal.flyte.url
resolves to your local sandbox instance?bumpy-plumber-6824
04/19/2024, 2:03 PMinternal.flyte.url
resolves to flyte installed on a k8s cluster.
In your case, could it be that its actually returning results from localhost:30080 and ignoring FLYTE_PLATFORM_URL=localhost:8089
altogether?thankful-minister-83577
thankful-minister-83577
thankful-minister-83577
admin:
endpoint: localhost:8089
insecure: true
is all you needbumpy-plumber-6824
04/19/2024, 4:14 PMthankful-minister-83577
thankful-minister-83577
thankful-minister-83577
average-finland-92144
04/19/2024, 4:17 PMIn your case, could it be that its actually returning results from localhost:30080I don't have sandbox running so I don't think it's the case here