hey everyone! thanks for having this community! i...
# prefect-server
c
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:
Copy code
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].project.name._eq', '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
k
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.
z
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? https://github.com/PrefectHQ/server/pull/328/files#diff-dba09b37045dcad023247e6d17483c5e77aff6c8bea4f51d225279fe79b1e6c3R27 I could be misinterpreting the error though.
c
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