Hey - all of a sudden today I am unable to run `pr...
# prefect-community
b
Hey - all of a sudden today I am unable to run
prefect deployment apply my-deployment.yml, mydeployment2.yml --upload
Error in ๐Ÿงต
gratitude thank you 1
hattip 1
โœ… 2
Copy code
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/prefect/cli/_utilities.py", line 41, in wrapper
    return fn(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/prefect/utilities/asyncutils.py", line 230, in coroutine_wrapper
    return run_async_in_new_loop(async_fn, *args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/prefect/utilities/asyncutils.py", line 181, in run_async_in_new_loop
    return anyio.run(partial(__fn, *args, **kwargs))
  File "/usr/local/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
    return asynclib.run(func, *args, **backend_options)
  File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
    return native_run(wrapper(), debug=debug)
  File "/usr/local/lib/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
    return future.result()
  File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
    return await func(*args)
  File "/usr/local/lib/python3.10/site-packages/prefect/cli/deployment.py", line 594, in apply
    deployment_id = await deployment.apply()
  File "/usr/local/lib/python3.10/site-packages/prefect/deployments.py", line 631, in apply
    deployment_id = await client.create_deployment(
  File "/usr/local/lib/python3.10/site-packages/prefect/client/orion.py", line 1277, in create_deployment
    response = await <http://self._client.post|self._client.post>(
  File "/usr/local/lib/python3.10/site-packages/httpx/_client.py", line 1848, in post
    return await self.request(
  File "/usr/local/lib/python3.10/site-packages/httpx/_client.py", line 1533, in request
    return await self.send(request, auth=auth, follow_redirects=follow_redirects)
  File "/usr/local/lib/python3.10/site-packages/prefect/client/base.py", line 251, in send
    response.raise_for_status()
  File "/usr/local/lib/python3.10/site-packages/httpx/_models.py", line 749, in raise_for_status
    raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Client error '422 Unprocessable Entity' for url '<https://api.prefect.cloud/api/accounts/xxx/workspaces/xxx/deployments/>'
For more information check: <https://httpstatuses.com/422>
t
Had the exact same error - caused by updates done in 2.7.7. If you update your local prefect version to 2.7.7, should work
b
upgrading to 2.7.7 fixed it, thanks @Tadej Svetina
j
Thanks for raising. What version where you using before @Ben Muller and @Tadej Svetina?
b
2.6.6
j
Thanks, Ben. It appears to only effect 2.7.6. I made an issue here.
๐Ÿ™Œ 2
d
@Ofek Katriel