Christian Nuss

03/02/2022, 1:19 AM
hey everyone! thanks for having this community! i recently upgraded from prefect 2021.11.30 to 2022.01.25, and when i run
prefect get flow-runs -s
i get:
prefect.exceptions.ClientError: [{'message': 'unexpected null value for type "String"', 'locations': [{'line': 2, 'column': 5}], 'path': ['flow_run'], 'extensions': {'path': '$.selectionSet.flow_run.args.where._and[0].flow._and[0]', 'code': 'validation-failed', 'exception': {'message': 'unexpected null value for type "String"'}}}]
any tips on how to get around this? i do believe that
prefect-server database upgrade
was run post-upgrade

Kevin Kho

03/02/2022, 1:39 AM
Yeah I think your gut is right that is looks like the database didn’t upgrade. I would try to upgrade from the GraphQL pod or container.


03/02/2022, 4:02 AM
I think that error is from the change in null behavior from Hasura v1 -> 2
We retain the old behavior in v2 by setting an environment variable. It seems like perhaps your image upgraded but the environment did not? I could be misinterpreting the error though.

Christian Nuss

03/02/2022, 4:58 AM
that sounds like the problem, thanks! I'll try and report back what I find!
confirmed and fixed! thanks for your input @Zanie and @Kevin Kho
👍 1