got multiple values for argument #246
Unanswered
dorz-everc
asked this question in
Q&A
Replies: 1 comment · 1 reply
-
@dorz-everc, were you able to solve this? I am getting the same error. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey guys, I have a working view, but when I adding the cahce decorator im getting this error. whats wrong?
the view:
@router.post("/embed_text")
@cache()
async def embed_text(input: dict):
return Response('', status_code=204)
error:
File "/Users/Projects/embedder/venv/lib/python3.8/site-packages/fastapi/routing.py", line 273, in app
raw_response = await run_endpoint_function(
File "/Users/Projects/embedder/venv/lib/python3.8/site-packages/fastapi/routing.py", line 190, in run_endpoint_function
return await dependant.call(**values)
File "/Users/Projects/embedder/venv/lib/python3.8/site-packages/fastapi_cache/decorator.py", line 156, in inner
return await ensure_async_func(request, *args, **kwargs)
File "/Users/Projects/embedder/venv/lib/python3.8/site-packages/fastapi_cache/decorator.py", line 99, in ensure_async_func
return await func(*args, **kwargs)
TypeError: embed_text() got multiple values for argument 'input'
Beta Was this translation helpful? Give feedback.
All reactions