Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

got multiple values for argument #246

Unanswered
dorz-everc asked this question in Q&A
Jul 24, 2023 · 1 comments · 1 reply
Discussion options

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'

You must be logged in to vote

Replies: 1 comment · 1 reply

Comment options

@dorz-everc, were you able to solve this? I am getting the same error.

You must be logged in to vote
1 reply
@ppanchal-mobiz
Comment options

For whoever lands here in the future, please check #113

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.