fastapi-cache icon indicating copy to clipboard operation
fastapi-cache copied to clipboard

Pendulum.parse() got an unexpected keyword argument 'exact'

Open testvinder opened this issue 10 months ago • 1 comments

I'm seeing this error in Sentry:

TypeError - Pendulum.parse() got an unexpected keyword argument 'exact'

    fastapi_cache/coder.py in <lambda> at line 15

from starlette.responses import JSONResponse
from starlette.templating import _TemplateResponse as TemplateResponse
CONVERTERS = {
    "date": lambda x: pendulum.parse(x, exact=True),
    "datetime": lambda x: pendulum.parse(x, exact=True),
    "decimal": Decimal,
}
class JsonEncoder(json.JSONEncoder):

Have anyone faced a similar issue?

I'm using fastapi-cache2 0.2.1 and pendulum 2.1.2

testvinder avatar Aug 14 '23 07:08 testvinder