Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
testvinder opened this issue Aug 14, 2023 · 1 comment
Open

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

testvinder opened this issue Aug 14, 2023 · 1 comment

Comments

@testvinder
Copy link

testvinder commented Aug 14, 2023

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

@mkdir700
Copy link
Contributor

I have tested it locally and did not find any similar issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants