Hi, I am seeing this error when trying to register...
# ask-the-community
n
Hi, I am seeing this error when trying to register my workflow -
Copy code
Failed with Unknown Exception <class 'AssertionError'> Reason: Cannot pass output from task n3 that produces no outputs to a downstream task
How do I find more information about this. Which task is this referring to?
k
There is a task supposed to create a output, but it didn’t. would you mind sharing your workflow code? we can improve error message.
v
In my experience this error was caused by not specifying the output type for a task such as:
Copy code
@task
def mytask(input1: str):
    return input1
This change made it work:
Copy code
def mytask(input1: str) -> str:
    return input1
Look through your tasks for a task that is supposed to return something but doesn’t specify which type it returns. Also make sure that you are not trying to receive as an input the promise from a task that isn’t supposed to return anything
n
Ok, thanks! I will check that.
105 Views