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

TypeError: zrevrangebyscore() got an unexpected keyword argument 'offset' #416

Open
NitescuLucian opened this issue Feb 15, 2022 · 2 comments

Comments

@NitescuLucian
Copy link

query_res = await self.redis_client.zrevrangebyscore(uuid, offset=0, count=count)

tanner_web      | Error handling request
tanner_web      | Traceback (most recent call last):
tanner_web      |   File "/opt/tanner/tanner-env/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
tanner_web      |     resp = await request_handler(request)
tanner_web      |   File "/opt/tanner/tanner-env/lib/python3.9/site-packages/aiohttp/web_app.py", line 504, in _handle
tanner_web      |     resp = await handler(request)
tanner_web      |   File "/opt/tanner/tanner-env/lib/python3.9/site-packages/aiohttp_jinja2/__init__.py", line 91, in wrapped
tanner_web      |     context = await coro(*args)
tanner_web      |   File "/opt/tanner/tanner-env/lib/python3.9/site-packages/Tanner-0.6.0-py3.9.egg/tanner/web/server.py", line 39, in handle_snare_stats
tanner_web      |     snare_stats = await self.api.return_snare_stats(snare_uuid)
tanner_web      |   File "/opt/tanner/tanner-env/lib/python3.9/site-packages/Tanner-0.6.0-py3.9.egg/tanner/api/api.py", line 26, in return_snare_stats
tanner_web      |     sessions = await self.return_snare_info(snare_uuid)
tanner_web      |   File "/opt/tanner/tanner-env/lib/python3.9/site-packages/Tanner-0.6.0-py3.9.egg/tanner/api/api.py", line 42, in return_snare_info
tanner_web      |     query_res = await self.redis_client.zrevrangebyscore(uuid, offset=0, count=count)
tanner_web      | TypeError: zrevrangebyscore() got an unexpected keyword argument 'offset'

I think was added as fix to another bug but I am running with dockers...

@afeena
Copy link
Collaborator

afeena commented Feb 16, 2022

Hey, I believe you are running the master branch. Could you try please with the develop? It should be fixed there

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