Thread
#prefect-community
    rafaqat ali

    rafaqat ali

    1 year ago
    Hi team, I have registered flow using the below code
    with Flow("Test run", run_config=DockerRun(labels=["dev"])) as flow:
                flow.add_task(say_hello())
            flow.register("Test")
    @task
    def say_hello():
        print("Hello, world!")
    When I run the flow from UI, I got the below error Failed to load and execute Flow's environment: AttributeError("'NoneType' object has no attribute 'rstrip'") Can anyone has faced such issue or help me in right direction?
    Jenny

    Jenny

    1 year ago
    Hi @rafaqat ali - can you give a bit more information about how you're running the flow. Is it in Server or Cloud? Are you using rstrip at all in your code? Are other flows working ok for you?
    rafaqat ali

    rafaqat ali

    1 year ago
    I'm using Server. Flows are running fine by using flow.run() but throwing exception when I run from UI. I'm not using rstrip in my code at all
    Jenny

    Jenny

    1 year ago
    Thanks - let me check this one with the wider team
    Hi @rafaqat ali - could you share your logs from the agent?
    Would also be useful to know a bit more about your agent set up and docker storage.