https://prefect.io logo
#prefect-community
Title
# prefect-community
k

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/deployment.py", line 132, in <module>
    deployment_o16.apply()
  File "/home/ubuntu/common_env/lib/python3.10/site-packages/prefect/utilities/asyncutils.py", 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/asyncutils.py", line 141, in run_async_in_new_loop
    return anyio.run(partial(__fn, *args, **kwargs))
  File "/home/ubuntu/common_env/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
    return asynclib.run(func, *args, **backend_options)
  File "/home/ubuntu/common_env/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
    return native_run(wrapper(), debug=debug)
  File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
    return future.result()
  File "/home/ubuntu/common_env/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
    return await func(*args)
  File "/home/ubuntu/common_env/lib/python3.10/site-packages/prefect/deployments.py", line 503, in apply
    deployment_id = await client.create_deployment(
  File "/home/ubuntu/common_env/lib/python3.10/site-packages/prefect/client.py", line 1370, in create_deployment
    response = await <http://self._client.post|self._client.post>(
  File "/home/ubuntu/common_env/lib/python3.10/site-packages/httpx/_client.py", line 1842, in post
    return await self.request(
  File "/home/ubuntu/common_env/lib/python3.10/site-packages/httpx/_client.py", 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/client.py", line 279, in send
    response.raise_for_status()
  File "/home/ubuntu/common_env/lib/python3.10/site-packages/prefect/client.py", 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 '<https://api.prefect.cloud/api/accounts/23d4542e-2fbd-406e-90ed-11473b62765f/workspaces/2bb600d8-82cb-448a-83a3-266f6a12cb0b/deployments/>'
Response: {'exception_message': 'Service Unavailable'}
For more information check: <https://httpstatuses.com/503>
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
k

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.
c

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
k

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
4 Views