<#3115 [BUG] flyteadmin returns inaccurate gRPC er...
# flyte-github
a
#3115 [BUG] flyteadmin returns inaccurate gRPC error code Issue created by honnix Describe the bug When submitting an invalid workflow, e.g. referencing to a remote task with wrong variable name, flyteadmin returns
INTERNAL
error code (see https://github.com/flyteorg/flyteadmin/blob/1817f38b977e9e821f732fb439cdd2f0acaead21/pkg/manager/impl/workflow_manager.go#L149). This complicates client side retry because in many cases an
INTERNAL
error is considered to be retryable. However in this case, retry doesn't make sense because it is client fault. Expected behavior
INVALID_ARGUMENT
is returned instead of
INTERNAL
. Additional context to reproduce No response Screenshots No response Are you sure this issue hasn't been raised already? ☑︎ Yes Have you read the Code of Conduct? ☑︎ Yes flyteorg/flyte