# prefect-community

Khyaati Jindal

01/17/2023, 11:20 AM
hi, I am trying to deploy my flow , through python and I get this server side error : in the thread
Error Log :
Copy code
Traceback (most recent call last):
  File "/home/ubuntu/5c-email-triggers/prefect_deployments/", line 132, in <module>
  File "/home/ubuntu/common_env/lib/python3.10/site-packages/prefect/utilities/", line 212, in wrapper
    return run_async_in_new_loop(async_fn, *args, **kwargs)
  File "/home/ubuntu/common_env/lib/python3.10/site-packages/prefect/utilities/", line 141, in run_async_in_new_loop
    return, *args, **kwargs))
  File "/home/ubuntu/common_env/lib/python3.10/site-packages/anyio/_core/", line 70, in run
    return, *args, **backend_options)
  File "/home/ubuntu/common_env/lib/python3.10/site-packages/anyio/_backends/", line 292, in run
    return native_run(wrapper(), debug=debug)
  File "/usr/lib/python3.10/asyncio/", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/lib/python3.10/asyncio/", line 646, in run_until_complete
    return future.result()
  File "/home/ubuntu/common_env/lib/python3.10/site-packages/anyio/_backends/", line 287, in wrapper
    return await func(*args)
  File "/home/ubuntu/common_env/lib/python3.10/site-packages/prefect/", line 503, in apply
    deployment_id = await client.create_deployment(
  File "/home/ubuntu/common_env/lib/python3.10/site-packages/prefect/", line 1370, in create_deployment
    response = await <|>(
  File "/home/ubuntu/common_env/lib/python3.10/site-packages/httpx/", line 1842, in post
    return await self.request(
  File "/home/ubuntu/common_env/lib/python3.10/site-packages/httpx/", line 1527, in request
    return await self.send(request, auth=auth, follow_redirects=follow_redirects)
  File "/home/ubuntu/common_env/lib/python3.10/site-packages/prefect/", line 279, in send
  File "/home/ubuntu/common_env/lib/python3.10/site-packages/prefect/", line 225, in raise_for_status
    raise PrefectHTTPStatusError.from_httpx_error(exc) from exc.__cause__
prefect.exceptions.PrefectHTTPStatusError: Server error '503 Service Unavailable' for url '<>'
Response: {'exception_message': 'Service Unavailable'}
For more information check: <>
Version: 2.3.2 API version: 0.8.0 Python version: 3.10.6 Git commit: 6e931ee9 Built: Tue, Sep 6, 2022 12:36 PM OS/Arch: linux/x86_64 Profile: bluethunder Server type: cloud

Kalise Richmond

01/17/2023, 10:39 PM
Hi @Khyaati Jindal, It looks like there was a timeout with the query. There have been a lot of changes that will provide resilience to this and I recommend updating to the latest version.

Christopher Boyd

01/18/2023, 3:25 PM
Hi Khyaati, agreed - I believe myself and Chris Guidry worked with you previously last week for timeout errors on your ec2 instance, and the suggestion is to upgrade your Prefect agent for the same

Khyaati Jindal

01/18/2023, 3:25 PM
Yes , i have upgraded the prefect and haven't been getting any time outs for a while. Thanks !!!
marvin 1