<#4523 [BUG-low impact] Better error reporting bu...
# flyte-github
c
#4523 [BUG-low impact] Better error reporting bug for FlyteScopedUserException: list index out of range Issue created by dhruvmalik007 hi , I wanted to give the feedback regarding the error reported when I was using one of the plugins of flyte with bacalhau and I was receiving the error due to the bad entrypoint inputs corresponding to the image that I provided as input . rather than giving more consistent feedback ("i.e kind of FlyteScopedUser: enter correct entrypoint parameters"), I saw in the error logs as follows : 2023-12-04 103834,103047 ERROR 2023-12-04 103834,103 flytekit ERROR Exception when executing list index base_task.py:539 out of range ╭────────────────── Traceback (most recent call last) ───────────────────╮ │ /root/neuralangelo/workflow/.venv/lib/python3.10/site-packages/flyteki │ │ t/core/base_task.py:537 in dispatch_execute │ │ │ │ 534 │ │ │ logger.info(f"Invoking {self.name} with inputs: {nat │ │ 535 │ │ │ try: │ │ 536 │ │ │ │ with timeit("Execute user level code"): │ │ ❱ 537 │ │ │ │ │ native_outputs = self.execute(**native_input │ │ 538 │ │ │ except Exception as e: │ │ 539 │ │ │ │ logger.exception(f"Exception when executing {e}" │ │ 540 │ │ │ │ raise e │ │ │ │ /root/neuralangelo/workflow/.venv/lib/python3.10/site-packages/flyteki │ │ t/extend/backend/base_agent.py:159 in execute │ │ │ │ 156 │ │ │ while not is_terminal_state(state): │ │ 157 │ │ │ │ progress.start_task(task) │ │ 158 │ │ │ │ time.sleep(1) │ │ ❱ 159 │ │ │ │ res = agent.get(dummy_context, metadata) │ │ 160 │ │ │ │ state = res.resource.state │ │ 161 │ │ │ │ logger.info(f"Task state: {state}") │ │ 162 │ │ │ │ /root/neuralangelo/workflow/.venv/lib/python3.10/site-packages/flyteki │ │ tplugins/bacalhau/agent.py:121 in get │ │ │ │ 118 │ │ │ return GetTaskResponse(resource=Resource(state=state │ │ 119 │ │ │ │ 120 │ │ state = SUCCEEDED │ │ ❱ 121 │ │ resulting_cid = baclhau_response.results[0].data.cid │ │ 122 │ │ print(f"job_id: {metadata.job_id} resulted in cid: {resu │ │ 123 │ │ ctx = FlyteContextManager.current_context() │ │ 124 │ │ res = literals.LiteralMap( │ ╰────────────────────────────────────────────────────────────────────────╯ IndexError: list index out of range 2023-12-04 103834,200589 ERROR 2023-12-04 103834,200 flytekit ERROR Exception when executing list index base_task.py:539 out of range ╭────────────────── Traceback (most recent call last) ───────────────────╮ │ /root/neuralangelo/workflow/.venv/lib/python3.10/site-packages/flyteki │ │ t/exceptions/scopes.py:206 in user_entry_point │ │ │ │ 203 │ │ │ │ raise type(exc)(f"Error encountered while execut │ │ {exc}") from exc │ │ 204 │ │ else: │ │ 205 │ │ │ try: │ │ ❱ 206 │ │ │ │ return wrapped(*args, **kwargs) │ │ 207 │ │ │ except FlyteScopedException as scoped: │ │ 208 │ │ │ │ raise scoped │ │ 209 │ │ │ except _user_exceptions.FlyteUserException: │ │ │ │ /root/neuralangelo/workflow/workflow_bacalau.py:37 in │ │ colmap_processing │ │ │ │ 34 @task │ │ 35 def colmap_processing(): │ │ 36 │ sequence_str = "Barn" │ │ ❱ 37 │ data_transfer_task … flyteorg/flyte