Validation inconsistency between the UI and API in work pool environment variables · Issue #12118 · PrefectHQ/prefect · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used the GitHub search to find a similar issue and didn't find it.
I refreshed the page and this issue still occurred.
I checked if this issue was specific to the browser I was using by testing with a different browser.
Bug summary
When editing a work pool from the UI it is possible to enter a boolean in the environment variable input. It is shown as valid json and accepted by the UI. However, the api rejects it and fails to save the work pool. From the network tab you can find the error "Validation failed for field 'env'. Failure reason: False is not of type 'object'"
Reproduction
Create a work pool
Enter 'True' or 'False' in the environment variables tab.
Try to save it.
Error
UI approves it as valid json.
Api retruns "Validation failed for field 'env'. Failure reason: False is not of type 'object'"
Browsers
Chrome
Firefox
Safari
Edge
Prefect version
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
First check
Bug summary
When editing a work pool from the UI it is possible to enter a boolean in the environment variable input. It is shown as valid json and accepted by the UI. However, the api rejects it and fails to save the work pool. From the network tab you can find the error "Validation failed for field 'env'. Failure reason: False is not of type 'object'"
Reproduction
Create a work pool
Enter 'True' or 'False' in the environment variables tab.
Try to save it.
Error
UI approves it as valid json.
Api retruns "Validation failed for field 'env'. Failure reason: False is not of type 'object'"
Browsers
Prefect version
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: