fal-ai / fal

⚡ Fastest way to serve open source ML models to millions
https://fal.ai/docs
Apache License 2.0
509 stars 44 forks source link

fix(fal): show cause in cli #186

Closed efiop closed 5 months ago

efiop commented 5 months ago

E.g. previously one would get

Error while serializing the given object

and now

Error while serializing the given object: Can't pickle <cyfunction ConstrainedList.list_length_validator at 0x110f544b0>: it's not the
same object as pydantic.types.ConstrainedList.list_length_validator

which is much more useful (obviously pickle errors are still obscure as hell, but that's a different topic).

linear[bot] commented 5 months ago

FEA-2353 better error messages, handle internal errors gracefully