8000 Validation inconsistency between the UI and API in work pool environment variables · Issue #12118 · PrefectHQ/prefect · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Validation inconsistency between the UI and API in work pool environment variables #12118

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
5 of 8 tasks
zhen0 opened this issue Feb 29, 2024 · 2 comments
Closed
5 of 8 tasks
Assignees
Labels
bug Something isn't working ui Related to the Prefect web interface

Comments

@zhen0
Copy link
Member
zhen0 commented Feb 29, 2024

First check

  • I added a descriptive title to this issue.
  • 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

@zhen0 zhen0 added bug Something isn't working ui Related to the Prefect web interface needs:triage and removed needs:triage labels Feb 29, 2024
@urimandujano
Copy link
Contributor

@zhen0 are you seeing this in the OSS UI?

I may inadvertently provide a fix for this in https://github.com/PrefectHQ/nebula/pull/7083/commits/062a899d1e6675aa4e9c915d79a9e3f68c94ecb0 - I had to pull in some updates to our templating logic from OSS and that update specifically seems to affect environment variable resolution in templates. Let me check in on the fix once that commit is fully merged.

@urimandujano urimandujano self-assigned this Feb 29, 2024
@zhen0
Copy link
Member Author
zhen0 commented May 30, 2025

This is no longer an issue I can produce.

@zhen0 zhen0 closed this as completed May 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ui Related to the Prefect web interface
Projects
None yet
Development

No branches or pull requests

2 participants
0