r

    Roey Brecher

    1 year ago
    Hi, any pointer on how to use
    map
    with
    StartFlowRun
    ?
    My current issue is that mapped tasks are failing due to an error
    Unexpected error: HTTPError('400 Client Error: Bad Request for url: <http://XXXXX:4200/graphql>')
    . I’m not sure if it specifically relates to StartFlowRun. Other tasks and flows are running successfully.
    Chris White

    Chris White

    1 year ago
    Hi Roey - could you share your code? This means that the graphQL payload being sent does not match the schema, so most likely the flow run ID you are providing isn’t valid
    r

    Roey Brecher

    1 year ago
    hi @Chris White here it is
    I’m using a FargateAgent and Prefect Server hosted on EC2
    Chris White

    Chris White

    1 year ago
    It looks like you might be providing an invalid flow name or project name when you map? Are you sure that the return values of
    etl_groups
    is a list of flow names and that the return value of
    data_source
    is a single string of the project name?
    r

    Roey Brecher

    1 year ago
    in that case, how would I pass the parameters? I did try what you suggest before, but did not see how to pass parameters which should be mapped, to the Flows. i.e something like
    parameters=dict(ids=ids, data_source=unmapped(data_source))