Prefect UI problem: apparently it does not propaga...
# prefect-ui
j
Prefect UI problem: apparently it does not propagate parameter errors - when I ran my deployment the run button spun for a bit and nothing seemed to happen, but when I run it from the command line I get the error:
Copy code
prefect deployment run flow-main/jds-pipeline-FT-431 
Creating flow run for deployment 'flow-main/jds-pipeline-FT-431'...
Error creating flow run: Validation failed for field 'config'. Failure reason: 'db_pool' is a required property
I feel like the error should be visible in the UI somewhere, too
👀 1
k
check under flow runs...if you didn't find any then the code is not compiled properly to run.
j
It wasn't a "compile" problem, it was a bad parameter in the to_deployment call. Hitting the run button did not create a flow run. But, the UI didn't report an error, I had to switch to the command line to see the error. "If you don't see anything there's a problem" is not as user friendly as "If you see an error message, there's a problem"
k
hmm... i see. you expecting to get a error message in UI. Got it. Great suggestion. and i am not sure which version of prefect you are using. I am using prefect 2.xx, I use to get better useful error messages. However, irrelevant of versions, without proper deployment you can't see any information in UI. I will say better config properly and pass correct parameter to deploy. Once deployed then you can see lot of features in UI. I use to follow certain steps to avoid these kind of errors. before deployment using prefect.yaml using below command. i use to run python <program>.py to check whether the flow is running properly. which will be shown under flow runs. so without deployment , i first validate my code and then use to deploy.
Copy code
prefect deploy -n flowname/deploymentname