Jessica Smith
06/09/2022, 9:10 PMKevin Kho
06/09/2022, 9:12 PMJessica Smith
06/09/2022, 9:38 PMTypeError: Object of type function is not JSON serializable
File "c:\sourcecontrol\Prefect\venv\lib\site-packages\prefect\client\client.py", line 1192, in create_flow_run
res = self.graphql(create_mutation, variables=dict(input=inputs))
File "c:\sourcecontrol\Prefect\venv\lib\site-packages\prefect\client\client.py", line 447, in graphql
params=dict(query=parse_graphql(query), variables=json.dumps(variables)),
Kevin Kho
06/09/2022, 9:56 PMcreate_flow_run
goes through an API so everything passed needs to be JSONSerializable to be passed through the API. You can’t have Python classes or callablesJessica Smith
06/09/2022, 10:00 PMKevin Kho
06/09/2022, 10:00 PM