https://prefect.io logo
m

Michael Hadorn

02/11/2021, 4:26 PM
I use a docker run with gitlab storage. I got this error then:
Copy code
prefect.utilities.exceptions.ClientError: 400 Client Error: Bad Request for url: <http://host.docker.internal:4200/graphql>

The following error messages were provided by the GraphQL server:

    INTERNAL_SERVER_ERROR: Variable "$input" got invalid value null at
        "input.states[0].task_run_id"; Expected non-nullable type UUID! not to be null.

The GraphQL query was:

    mutation($input: set_task_run_states_input!) {
            set_task_run_states(input: $input) {
                states {
                    status
                    message
                    id
            }
        }
    }

The passed variables were:

    {"input": {"states": [{"state": {"message": "Starting task run.", "cached_inputs": {}, "context": {"tags": []}, "_result": {"__version__": "0.14.6", "type": "NoResultType"}, "__version__": "0.14.6", "type": "Running"}, "task_run_id":
 null, "version": null}]}}
locally and also with the local agent on the ui server it's working.
I saw, that this error also occures with others. Maybe a recreate of the tenant will help...
z

Zanie

02/11/2021, 5:04 PM
Hi @Michael Hadorn, is this error occurring reproducibly/consistently?
m

Michael Hadorn

02/11/2021, 5:08 PM
yes. but only in the docker enviroment
z

Zanie

02/11/2021, 5:09 PM
Could you provide us with the flow/code that's causing this?
m

Michael Hadorn

02/11/2021, 5:10 PM
and I run several times the same kind of task. but only the 4 last one crashes.
hm. maybe i should create a minimal example. it's quite big...
z

Zanie

02/11/2021, 5:11 PM
That'd be really helpful for us 🙂
m

Michael Hadorn

02/11/2021, 5:13 PM
also the flow is not stopping.
z

Zanie

02/11/2021, 5:14 PM
What docker image are you running the flow in?
m

Michael Hadorn

02/11/2021, 5:15 PM
Copy code
prefecthq/prefect:0.14.6-python3.8
z

Zanie

02/11/2021, 5:15 PM
👍 makes sense -- just wanted to check if there was something weird
m

Michael Hadorn

02/12/2021, 3:34 PM
ok, after resetting the ui (delete the volume) this error is not reappearing. i have no idea. But is solved for now for me. thx for looking at it.
1