https://prefect.io logo
n

Newskooler

10/19/2020, 3:26 PM
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

Raphaël Riel

10/19/2020, 3:35 PM
Probably a Parameter with a default_value that cannot be serialized to JSON.
Do you have any parameter with defaults in this Flow?
n

Newskooler

10/19/2020, 3:36 PM
Yes, I will check them out.
r

Raphaël Riel

10/19/2020, 3:37 PM
I had this problem while trying to put the Default value of a Param to a
Decimal()
n

Newskooler

10/19/2020, 3:37 PM
all are
str
and only one is
list
of
str
r

Raphaël Riel

10/19/2020, 3:38 PM
Those should not cause trouble then…
n

Newskooler

10/19/2020, 3:38 PM
one is type
pathlib.Path
actually
r

Raphaël Riel

10/19/2020, 3:38 PM
Ah!
n

Newskooler

10/19/2020, 3:38 PM
it must be this one that’s causing the trouble.
r

Raphaël Riel

10/19/2020, 3:38 PM
Definetly.
n

Newskooler

10/19/2020, 3:38 PM
Got it. Thanks! : )
r

Raphaël Riel

10/19/2020, 3:38 PM
🙂