guys i'm having issues deploying flows using serve...
# ask-community
g
guys i'm having issues deploying flows using serve to deploy my flows. i'm trying to deploy it using serve() like this:
Copy code
map_deploy = map_test.to_deployment(name="map_test")
    serve(map_deploy)
but whenever i execute my code i get this error:
Copy code
prefect.exceptions.PrefectHTTPStatusError: Client error '422 Unprocessable Entity' for url '<http://localhost:4200/api/deployments/>'
Response: {'exception_message': 'Invalid request received.', 'exception_detail': [{'type': 'extra_forbidden', 'loc': ['body', 'infra_overrides'], 'msg': 'Extra inputs are not permitted', 'input': {}}, {'type': 'extra_forbidden', 'loc': ['body', 'manifest_path'], 'msg': 'Extra inputs are not permitted', 'input': None}, {'type': 'extra_forbidden', 'loc': ['body', 'schedule'], 'msg': 'Extra inputs are not permitted', 'input': None}], 'request_body': {'infra_overrides': {}, 'name': 'map_test', 'flow_id': '4148abfb-5ebd-40f6-8caf-43d2057362d4', 'paused': False, 'schedules': [], 'enforce_parameter_schema': False, 'parameter_openapi_schema': {'title': 'Parameters', 'type': 'object', 'properties': {}}, 'parameters': {}, 'tags': [], 'manifest_path': None, 'work_queue_name': None, 'storage_document_id': None, 'infrastructure_document_id': None, 'schedule': None, 'description': None, 'path': '.', 'version': '0d8321bdd6f142f31e54875d4be2089a', 'entrypoint': 'flows/examples/async_flow.py:map_test'}}
For more information check: <https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/422>
This happened when i updated my project to version 3
n
this seems like a client server mismatch - which versions do you have?
g
how do i check for each one? i just updated my prefect version on my .venv and docker they are both in 3.1.11
n
hmm. what env vars did you set on your server container? if you run
prefect config view --show-secrets
in the server container it should show
g
its like this