Chris Duke
04/04/2022, 4:27 PMTraceback (most recent call last):
  File "/helix_orchestration/flows/reporting/fhir_rpt_reporting_pipeline.py", line 191, in <module>
    flow.register(project_name="helix", idempotency_key=flow.serialized_hash())
  File "/usr/local/lib/python3.7/site-packages/prefect/core/flow.py", line 1734, in register
    idempotency_key=idempotency_key,
  File "/usr/local/lib/python3.7/site-packages/prefect/client/client.py", line 1211, in register
    variables=dict(input=inputs),
  File "/usr/local/lib/python3.7/site-packages/prefect/client/client.py", line 554, in graphql
    retry_on_api_error=retry_on_api_error,
  File "/usr/local/lib/python3.7/site-packages/prefect/client/client.py", line 458, in post
    retry_on_api_error=retry_on_api_error,
  File "/usr/local/lib/python3.7/site-packages/prefect/client/client.py", line 738, in _request
    session=session, method=method, url=url, params=params, headers=headers
  File "/usr/local/lib/python3.7/site-packages/prefect/client/client.py", line 660, in _send_request
    raise ClientError(f"{exc}\n{graphql_msg}") from exc
prefect.exceptions.ClientError: 400 Client Error: Bad Request for url: <http://apollo:4200/>
The following error messages were provided by the GraphQL server:    GRAPHQL_VALIDATION_FAILED: Unknown type "register_tasks_input". Did you mean
        "register_agent_input", "delete_agent_input", "delete_flow_input",
        "delete_tenant_input", or "log_insert_input"?
    GRAPHQL_VALIDATION_FAILED: Cannot query field "register_tasks" on type
        "Mutation". Did you mean "register_agent", "delete_task", "insert_task", or "update_task"?
I'm not sure what this error is indicating as i have other flows that register fine using this same register call and similar setup. I'm running this locally using docker image on version 0.15.10Kevin Kho
Chris Duke
04/04/2022, 5:10 PM"hasura/graphql-engine:v1.3.3"
"prefecthq/server:2021.04.06"
"prefecthq/apollo:2021.04.06"
prefecthq/ui:2021-04-15
prefecthq/prefect:0.15.10
those are the versions we have in our docker compose fileKevin Kho
Chris Duke
04/04/2022, 5:12 PMChris Duke
04/04/2022, 5:13 PMKevin Kho
flow.register()?Chris Duke
04/04/2022, 5:44 PMflow.register(project_name="helix", idempotency_key=flow.serialized_hash())
where helix is a registered project nameAnna Geller
docker exec graphqlContainerName prefect-server database upgrade -y
Note that after running DB migrations manually, you need to restart your Apollo container so that it can refetch the updated database schemas:
docker restart apolloContainerNameAnna Geller
Anna Geller
Chris Duke
04/04/2022, 5:50 PMChris Duke
04/04/2022, 5:55 PMKevin Kho
prefect diagnosticsChris Duke
04/04/2022, 5:58 PM{
  "config_overrides": {
    "backend": true,
    "server": {
      "host": true
    }
  },
  "env_vars": [],
  "system_information": {
    "platform": "Linux-5.10.76-linuxkit-x86_64-with-debian-11.1",
    "prefect_backend": "server",
    "prefect_version": "0.15.10",
    "python_version": "3.7.12"
  }
}