Hello
@Marvin
I just upgraded my Prefect package from 3.0.3 to 3.0.7, and I’m encountering a few issues:
1.
UI Problems: Work Pools no longer display, and creating new ones isn’t possible—the types aren’t available (see attached image).
2.
Library Errors: When using the Python library (which wraps the API), I get a
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
error.
3.
Flow Deployment Issues: Deploying a flow to a non-existent Work Pool doesn’t trigger a 404 error; instead, I get a 200 response with a 404 HTML page.
- Example:
WorkPool.model_validate(response.json())
fails as the server returns HTML instead of JSON.
4.
Client Issues: Using
prefect.client.orchestration.get_client
with
create_work_pool
sends requests that result in HTML responses, causing JSON parsing failures.
- Example:
<Request('GET', '<http://127.0.0.1:4200/csrf-token?client=6bd93e79-f5a8-46b2-b99f-b88891b2d3e0>')>
What version to use? Should I consider building a custom REST API client instead?