Brennan Tolman
07/13/2023, 8:10 PMprefect.exceptions.PrefectHTTPStatusError: Client error '405 Method Not Allowed' for url <https://my-prefect.com/api/work_pools/default-agent-pool/get_scheduled_flow_runs>`
Response: {'detail': 'Method Not Allowed'}
What is the cause of this error and how can it be resolved?Marvin
07/13/2023, 8:11 PMBrennan Tolman
07/13/2023, 8:14 PMMarvin
07/13/2023, 8:15 PMpython
import prefect
print(prefect.__version__)
This command will print the version of the Prefect client library that you have installed in your Python environment. For example, you might see something like 0.14.16
.
To check the version of your Prefect server, you can use the Prefect CLI command prefect version
. This command will print version and environment details to your console, including the server database and version. For example, you might see something like this:
bash
$ prefect version
Version: 2.10.4
API version: 0.8.4
Python version: 3.9.16
Git commit: b6d0433a
Built: Thu, Apr 13, 2023 5:34 PM
OS/Arch: darwin/arm64
Profile: default
Server type: cloud
In this example, the Prefect version is 2.10.4
.
Remember, knowing your versions is like knowing your ABCs. It's basic, but it's essential. Happy coding! source sourceprefect --version
or prefect -v
in your terminal. This will print out the version of the Prefect Python package that you have installed.
As for the Prefect Server version, it's a bit more involved. You would need to check the version of the Docker image you're using to run the Prefect Server. If you're using Kubernetes, you can check the image tag of the Prefect Server deployment. The tag of the Docker image usually corresponds to the version of Prefect Server.
Remember, it's always important to keep your versions in check. It's like making sure your socks match before you leave the house. Not always necessary, but it can save you from some awkward situations.
Here are the relevant source links for your reference:
- Prefect Release Notes
Remember, it's always a good idea to keep your versions in check. It's like making sure your socks match before you leave the house. Not always necessary, but it can save you from some awkward situations.Brennan Tolman
07/13/2023, 8:21 PMMarvin
07/13/2023, 8:49 PMBrennan Tolman
07/13/2023, 9:47 PMprefect.exceptions.PrefectHTTPStatusError: Client error '422 Unprocessable Entity' for url '<https://my-prefect.com/api/flow_runs/filter>'
Response: {'exception_message': 'Invalid request received.', exception_detail': [{'loc': ['path', 'id'], 'msg': value is not a valid uuid', 'type': 'type_error.uuid'}], 'request_body': None}
This is a different issue, but I am still not sure how to resolve it.
I also see this issue when I downgrade to 2.10.19.