As a general rule, the Prefect version used by your agents and flows must be <= Server version, otherwise your flows may be hitting some API endpoints that don’t (yet) exist in your Server backend API. The latest release introduced Hasura 2.0 which may be the reason for your error.
Having said that, I would suggest to either:
• first upgrade your Server and only then upgrade your agents and flows
• or don’t upgrade your agents and flows and keep those in a Prefect <= Server version