Andrei Tulbure

10/27/2022, 10:30 AM
Hi. Quick question: I have received an error for Prefect 1.x because my order of returned parameters was a little bit messed up, interchanged 3 parameters for a prefect task and one ended up missing. And the error I got was pretty weird, something in the lines of `ValueError: Could not infer an active Flow context while creating edge to <Task: Task1>. This often means you called a task outside a
with Flow(...)
block. If you're trying to run this task outside of a Flow context, you need to call `GetItem(...).run(...)`` . All in all error was because of missing params from function call. Could you make the error a little bit more helpful ? Or specific ? ...... Or am I missing something ?

Jeff Hale

10/27/2022, 12:19 PM
Hi Andrei. Thank you for raising. We’re always looking to make error messages more helpful - sometimes it’s quite tricky. Development resources for such things are primarily going toward Prefect 2 - you might find the error messages are more helpful, too. 🙂

Andrei Tulbure

10/27/2022, 12:20 PM
Ok thank you!
👍 1