Jessica Smith
06/09/2022, 9:10 PMKevin Kho
Jessica Smith
06/09/2022, 9:38 PMJessica Smith
06/09/2022, 9:53 PMJessica Smith
06/09/2022, 9:53 PMTypeError: Object of type function is not JSON serializable
Jessica Smith
06/09/2022, 9:54 PMFile "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)),
Jessica Smith
06/09/2022, 9:54 PMKevin Kho
create_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 callablesKevin Kho
Jessica Smith
06/09/2022, 10:00 PMKevin Kho