Hi :wave: I get a strange error in one of my tasks...
# prefect-community
n
Hi šŸ‘‹ I get a strange error in one of my tasks when I try to register a flow:
Copy code
ValidationError: Value is not JSON-compatible
Does anyone know why? I could not trace the source of the issue : /
r
Probably a Parameter with a default_value that cannot be serialized to JSON.
Do you have any parameter with defaults in this Flow?
n
Yes, I will check them out.
r
I had this problem while trying to put the Default value of a Param to a
Decimal()
n
all are
str
and only one is
list
of
str
r
Those should not cause trouble thenā€¦
n
one is type
pathlib.Path
actually
r
Ah!
n
it must be this one thatā€™s causing the trouble.
r
Definetly.
n
Got it. Thanks! : )
r
šŸ™‚