<@ULVA73B9P> got this error message today when lau...
# ask-marvin
a
@Marvin got this error message today when launching a flow that was working fine until yesterday
Copy code
Error creating flow run: Validation failed for field 'env'. Failure reason: '' is not of type 'object'
m
It appears that the issue you are facing relates to the validation of the
env
field when creating a flow run, which is expected to be an object. The error message indicates that the value provided for this field is not of the correct type. Unfortunately, there were no relevant issues found on GitHub, and the documentation excerpts do not directly address the validation error for the
env
field. Since the error is related to the environment configuration, I recommend reviewing any recent changes to your flow's environmental variables or deployment configuration to ensure that the
env
field is structured correctly and contains an object, not just an empty string or other incorrect type. For detailed guidance on configuring environments and using environment variables, you might want to revisit the Flows and Prefect Deploy sections of the Prefect documentation. If none of this helps and the issue persists, consider reaching out to the Prefect community via Prefect Discourse or Prefect Slack for support, providing the relevant portion of your flow or deployment code that includes the
env
configuration for more context.
n
hi @Andrea C.! do you have more of the stack strace?
this looks like it could be related to a recent change and I want to make sure we haven't rolled out some bug
a
Hi @Nate, The message appears as a pop up when I was submitting the job. Unfortunately, it does not gave me more stack trace. Only thing that I can add is that the field
env
that it is concerning about is not among the parameters that I pass to the job, neither a field in the prefect.yaml that I use to deploy.