[BUG] The inputs/outputs Python code snippet leads to a "Failed to connect" error #5578
Closed
2 tasks done
Labels
bug
Something isn't working
Describe the bug
The code snippet in flyteconsole leads to an error like:
This is because the code snippet is built around
FlyteRemote.get
which uses gRPC, while the code snippet generated in the Flyte UI useswindow.location.host
e.g.Config.for_endpoint(window.location.host)
, however this URL does not necessarily map to the gRPC endpoint.Idea for Fix
Users already configure flytekit in
~/.flyte/config.yaml
to setadmin.endpoint
to the correct gRPC endpoint. We can leverage this by usingConfig.auto()
auto config, and building the code snippet around this Config.Proposed fix in PR: flyteorg/flyteconsole#883
Expected behavior
The inputs/outputs Python code snippet works
Screenshots
Current behavior:
Proposed fix, when configured to use auto config:
Are you sure this issue hasn't been raised already?
Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: