January 16, 2023 > 10:18:19 | ERROR | Request failed: Invalid input of type: 'NoneType'. Convert to a bytes, string, int or float first.| {'request_id': '88f0e895-65e7-491a-80d6-31a9efe4ce2b', 'service': 'PowerLoom|OffChainConsensus|ServiceEntry'}
Traceback (most recent call last):
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/anyio/streams/memory.py", line 94, in receive
return self.receive_nowait()
│ └ <function MemoryObjectReceiveStream.receive_nowait at 0x104f273a0>
└ MemoryObjectReceiveStream(_state=MemoryObjectStreamState(max_buffer_size=0, buffer=deque([]), open_send_channels=0, open_rece...
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/anyio/streams/memory.py", line 89, in receive_nowait
raise WouldBlock
└ <class 'anyio.WouldBlock'>
anyio.WouldBlock
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/starlette/middleware/base.py", line 77, in call_next
message = await recv_stream.receive()
│ └ <function MemoryObjectReceiveStream.receive at 0x104f27430>
└ MemoryObjectReceiveStream(_state=MemoryObjectStreamState(max_buffer_size=0, buffer=deque([]), open_send_channels=0, open_rece...
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/anyio/streams/memory.py", line 114, in receive
raise EndOfStream
└ <class 'anyio.EndOfStream'>
anyio.EndOfStream
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/xadahiya/miniconda3/envs/powerloom/bin/gunicorn", line 8, in <module>
sys.exit(run())
│ │ └ <function run at 0x1030c9a60>
│ └ <built-in function exit>
└ <module 'sys' (built-in)>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py", line 67, in run
WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
└ <class 'gunicorn.app.wsgiapp.WSGIApplication'>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/gunicorn/app/base.py", line 231, in run
super().run()
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/gunicorn/app/base.py", line 72, in run
Arbiter(self).run()
│ └ <gunicorn.app.wsgiapp.WSGIApplication object at 0x1030cc130>
└ <class 'gunicorn.arbiter.Arbiter'>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/gunicorn/arbiter.py", line 202, in run
self.manage_workers()
│ └ <function Arbiter.manage_workers at 0x103afa700>
└ <gunicorn.arbiter.Arbiter object at 0x1030cc100>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/gunicorn/arbiter.py", line 551, in manage_workers
self.spawn_workers()
│ └ <function Arbiter.spawn_workers at 0x103afa820>
└ <gunicorn.arbiter.Arbiter object at 0x1030cc100>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/gunicorn/arbiter.py", line 622, in spawn_workers
self.spawn_worker()
│ └ <function Arbiter.spawn_worker at 0x103afa790>
└ <gunicorn.arbiter.Arbiter object at 0x1030cc100>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/gunicorn/arbiter.py", line 589, in spawn_worker
worker.init_process()
│ └ <function UvicornWorker.init_process at 0x1042b6a60>
└ <uvicorn.workers.UvicornWorker object at 0x1042c42e0>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/uvicorn/workers.py", line 66, in init_process
super(UvicornWorker, self).init_process()
│ └ <uvicorn.workers.UvicornWorker object at 0x1042c42e0>
└ <class 'uvicorn.workers.UvicornWorker'>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/gunicorn/workers/base.py", line 142, in init_process
self.run()
│ └ <function UvicornWorker.run at 0x1042b6ca0>
└ <uvicorn.workers.UvicornWorker object at 0x1042c42e0>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/uvicorn/workers.py", line 98, in run
return asyncio.run(self._serve())
│ │ │ └ <function UvicornWorker._serve at 0x1042b6c10>
│ │ └ <uvicorn.workers.UvicornWorker object at 0x1042c42e0>
│ └ <function run at 0x103cd2700>
└ <module 'asyncio' from '/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/asyncio/__init__.py'>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
│ │ └ <coroutine object UvicornWorker._serve at 0x105405ec0>
│ └ <method 'run_until_complete' of 'uvloop.loop.Loop' objects>
└ <uvloop.Loop running=True closed=False debug=False>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/uvicorn/protocols/http/httptools_impl.py", line 419, in run_asgi
result = await app( # type: ignore[func-returns-value]
└ <uvicorn.middleware.proxy_headers.ProxyHeadersMiddleware object at 0x105482b20>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
return await self.app(scope, receive, send)
│ │ │ │ └ <bound method RequestResponseCycle.send of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x10558f070>>
│ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x10558f0...
│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 9031), 'cl...
│ └ <fastapi.applications.FastAPI object at 0x10541b910>
└ <uvicorn.middleware.proxy_headers.ProxyHeadersMiddleware object at 0x105482b20>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/fastapi/applications.py", line 270, in __call__
await super().__call__(scope, receive, send)
│ │ └ <bound method RequestResponseCycle.send of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x10558f070>>
│ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x10558f0...
└ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 9031), 'cl...
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/starlette/applications.py", line 124, in __call__
await self.middleware_stack(scope, receive, send)
│ │ │ │ └ <bound method RequestResponseCycle.send of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x10558f070>>
│ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x10558f0...
│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 9031), 'cl...
│ └ <starlette.middleware.errors.ServerErrorMiddleware object at 0x105429310>
└ <fastapi.applications.FastAPI object at 0x10541b910>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/starlette/middleware/errors.py", line 162, in __call__
await self.app(scope, receive, _send)
│ │ │ │ └ <function ServerErrorMiddleware.__call__.<locals>._send at 0x105576160>
│ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x10558f0...
│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 9031), 'cl...
│ └ <starlette.middleware.base.BaseHTTPMiddleware object at 0x1054292b0>
└ <starlette.middleware.errors.ServerErrorMiddleware object at 0x105429310>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/starlette/middleware/base.py", line 106, in __call__
response = await self.dispatch_func(request, call_next)
│ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next at 0x1055760d0>
│ │ └ <starlette.requests.Request object at 0x10558f850>
│ └ <function request_middleware at 0x10541dc10>
└ <starlette.middleware.base.BaseHTTPMiddleware object at 0x1054292b0>
> File "/Users/xadahiya/workspace/offchain-consensus/consensus_entry_point.py", line 81, in request_middleware
response = await call_next(request)
│ └ <starlette.requests.Request object at 0x10558f850>
└ <function BaseHTTPMiddleware.__call__.<locals>.call_next at 0x1055760d0>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/starlette/middleware/base.py", line 80, in call_next
raise app_exc
└ DataError("Invalid input of type: 'NoneType'. Convert to a bytes, string, int or float first.")
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/starlette/middleware/base.py", line 69, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
│ │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.send_no_error at 0x105576dc0>
│ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x105576af0>
│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 9031), 'cl...
│ └ <starlette.middleware.cors.CORSMiddleware object at 0x105429250>
└ <starlette.middleware.base.BaseHTTPMiddleware object at 0x1054292b0>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/starlette/middleware/cors.py", line 84, in __call__
await self.app(scope, receive, send)
│ │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.send_no_error at 0x105576dc0>
│ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x105576af0>
│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 9031), 'cl...
│ └ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x105429220>
└ <starlette.middleware.cors.CORSMiddleware object at 0x105429250>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
raise exc
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
await self.app(scope, receive, sender)
│ │ │ │ └ <function ExceptionMiddleware.__call__.<locals>.sender at 0x1055d45e0>
│ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x105576af0>
│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 9031), 'cl...
│ └ <fastapi.middleware.asyncexitstack.AsyncExitStackMiddleware object at 0x1054291c0>
└ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x105429220>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
raise e
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
await self.app(scope, receive, send)
│ │ │ │ └ <function ExceptionMiddleware.__call__.<locals>.sender at 0x1055d45e0>
│ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x105576af0>
│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 9031), 'cl...
│ └ <fastapi.routing.APIRouter object at 0x10541b970>
└ <fastapi.middleware.asyncexitstack.AsyncExitStackMiddleware object at 0x1054291c0>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/starlette/routing.py", line 706, in __call__
await route.handle(scope, receive, send)
│ │ │ │ └ <function ExceptionMiddleware.__call__.<locals>.sender at 0x1055d45e0>
│ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x105576af0>
│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 9031), 'cl...
│ └ <function Route.handle at 0x10506da60>
└ APIRoute(path='/metrics/projects', name='get_projects', methods=['GET'])
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/starlette/routing.py", line 276, in handle
await self.app(scope, receive, send)
│ │ │ │ └ <function ExceptionMiddleware.__call__.<locals>.sender at 0x1055d45e0>
│ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x105576af0>
│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 9031), 'cl...
│ └ <function request_response.<locals>.app at 0x105431940>
└ APIRoute(path='/metrics/projects', name='get_projects', methods=['GET'])
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/starlette/routing.py", line 66, in app
response = await func(request)
│ └ <starlette.requests.Request object at 0x1055c1220>
└ <function get_request_handler.<locals>.app at 0x1054318b0>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/fastapi/routing.py", line 225, in app
solved_result = await solve_dependencies(
└ <function solve_dependencies at 0x105054d30>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/fastapi/dependencies/utils.py", line 533, in solve_dependencies
solved = await call(**sub_values)
│ └ {'auth_check_dep': AuthCheck(authorized=True, api_key='public', reason='', owner=SnapshotterMetadata(rate_limit='10000/day;20...
└ <function rate_limit_auth_check at 0x1053c7310>
File "/Users/xadahiya/workspace/offchain-consensus/auth/helpers/helpers.py", line 190, in rate_limit_auth_check
await auth_redis_conn.hset(
│ └ <function HashCommands.hset at 0x10517d700>
└ Redis<ConnectionPool<Connection<host=127.0.0.1,port=6371,db=1>>>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/redis/asyncio/client.py", line 505, in execute_command
return await conn.retry.call_with_retry(
│ │ └ <function Retry.call_with_retry at 0x105274f70>
│ └ <redis.asyncio.retry.Retry object at 0x105479a80>
└ Connection<host=127.0.0.1,port=6371,db=1>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/redis/asyncio/retry.py", line 59, in call_with_retry
return await do()
└ <function Redis.execute_command.<locals>.<lambda> at 0x1055d4670>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/redis/asyncio/client.py", line 480, in _send_command_parse_response
await conn.send_command(*args)
│ │ └ ('HSET', 'user:127.0.0.1', 'rate_limit', '10000/day;20/minute;2/second', 'active', <UserStatusEnum.active: 'active'>, 'callsC...
│ └ <function Connection.send_command at 0x1052859d0>
└ Connection<host=127.0.0.1,port=6371,db=1>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/redis/asyncio/connection.py", line 806, in send_command
self.pack_command(*args), check_health=kwargs.get("check_health", True)
│ │ │ │ └ <method 'get' of 'dict' objects>
│ │ │ └ {}
│ │ └ ('HSET', 'user:127.0.0.1', 'rate_limit', '10000/day;20/minute;2/second', 'active', <UserStatusEnum.active: 'active'>, 'callsC...
│ └ <function Connection.pack_command at 0x105285b80>
└ Connection<host=127.0.0.1,port=6371,db=1>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/redis/asyncio/connection.py", line 881, in pack_command
for arg in map(self.encoder.encode, args):
│ │ │ └ (b'HSET', 'user:127.0.0.1', 'rate_limit', '10000/day;20/minute;2/second', 'active', <UserStatusEnum.active: 'active'>, 'calls...
│ │ └ <member 'encoder' of 'Connection' objects>
│ └ Connection<host=127.0.0.1,port=6371,db=1>
└ b'uuid'
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/redis/asyncio/connection.py", line 123, in encode
raise DataError(
└ <class 'redis.exceptions.DataError'>
redis.exceptions.DataError: Invalid input of type: 'NoneType'. Convert to a bytes, string, int or float first.
January 16, 2023 > 10:18:19 | ERROR | Request failed: Invalid input of type: 'NoneType'. Convert to a bytes, string, int or float first.| {'request_id': '88f0e895-65e7-491a-80d6-31a9efe4ce2b', 'service': 'PowerLoom|OffChainConsensus|ServiceEntry'}
Traceback (most recent call last):
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/anyio/streams/memory.py", line 94, in receive
return self.receive_nowait()
│ └ <function MemoryObjectReceiveStream.receive_nowait at 0x104f273a0>
└ MemoryObjectReceiveStream(_state=MemoryObjectStreamState(max_buffer_size=0, buffer=deque([]), open_send_channels=0, open_rece...
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/anyio/streams/memory.py", line 89, in receive_nowait
raise WouldBlock
└ <class 'anyio.WouldBlock'>
anyio.WouldBlock
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/starlette/middleware/base.py", line 77, in call_next
message = await recv_stream.receive()
│ └ <function MemoryObjectReceiveStream.receive at 0x104f27430>
└ MemoryObjectReceiveStream(_state=MemoryObjectStreamState(max_buffer_size=0, buffer=deque([]), open_send_channels=0, open_rece...
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/anyio/streams/memory.py", line 114, in receive
raise EndOfStream
└ <class 'anyio.EndOfStream'>
anyio.EndOfStream
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/xadahiya/miniconda3/envs/powerloom/bin/gunicorn", line 8, in <module>
sys.exit(run())
│ │ └ <function run at 0x1030c9a60>
│ └ <built-in function exit>
└ <module 'sys' (built-in)>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py", line 67, in run
WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
└ <class 'gunicorn.app.wsgiapp.WSGIApplication'>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/gunicorn/app/base.py", line 231, in run
super().run()
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/gunicorn/app/base.py", line 72, in run
Arbiter(self).run()
│ └ <gunicorn.app.wsgiapp.WSGIApplication object at 0x1030cc130>
└ <class 'gunicorn.arbiter.Arbiter'>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/gunicorn/arbiter.py", line 202, in run
self.manage_workers()
│ └ <function Arbiter.manage_workers at 0x103afa700>
└ <gunicorn.arbiter.Arbiter object at 0x1030cc100>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/gunicorn/arbiter.py", line 551, in manage_workers
self.spawn_workers()
│ └ <function Arbiter.spawn_workers at 0x103afa820>
└ <gunicorn.arbiter.Arbiter object at 0x1030cc100>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/gunicorn/arbiter.py", line 622, in spawn_workers
self.spawn_worker()
│ └ <function Arbiter.spawn_worker at 0x103afa790>
└ <gunicorn.arbiter.Arbiter object at 0x1030cc100>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/gunicorn/arbiter.py", line 589, in spawn_worker
worker.init_process()
│ └ <function UvicornWorker.init_process at 0x1042b6a60>
└ <uvicorn.workers.UvicornWorker object at 0x1042c42e0>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/uvicorn/workers.py", line 66, in init_process
super(UvicornWorker, self).init_process()
│ └ <uvicorn.workers.UvicornWorker object at 0x1042c42e0>
└ <class 'uvicorn.workers.UvicornWorker'>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/gunicorn/workers/base.py", line 142, in init_process
self.run()
│ └ <function UvicornWorker.run at 0x1042b6ca0>
└ <uvicorn.workers.UvicornWorker object at 0x1042c42e0>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/uvicorn/workers.py", line 98, in run
return asyncio.run(self._serve())
│ │ │ └ <function UvicornWorker._serve at 0x1042b6c10>
│ │ └ <uvicorn.workers.UvicornWorker object at 0x1042c42e0>
│ └ <function run at 0x103cd2700>
└ <module 'asyncio' from '/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/asyncio/__init__.py'>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
│ │ └ <coroutine object UvicornWorker._serve at 0x105405ec0>
│ └ <method 'run_until_complete' of 'uvloop.loop.Loop' objects>
└ <uvloop.Loop running=True closed=False debug=False>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/uvicorn/protocols/http/httptools_impl.py", line 419, in run_asgi
result = await app( # type: ignore[func-returns-value]
└ <uvicorn.middleware.proxy_headers.ProxyHeadersMiddleware object at 0x105482b20>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
return await self.app(scope, receive, send)
│ │ │ │ └ <bound method RequestResponseCycle.send of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x10558f070>>
│ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x10558f0...
│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 9031), 'cl...
│ └ <fastapi.applications.FastAPI object at 0x10541b910>
└ <uvicorn.middleware.proxy_headers.ProxyHeadersMiddleware object at 0x105482b20>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/fastapi/applications.py", line 270, in __call__
await super().__call__(scope, receive, send)
│ │ └ <bound method RequestResponseCycle.send of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x10558f070>>
│ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x10558f0...
└ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 9031), 'cl...
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/starlette/applications.py", line 124, in __call__
await self.middleware_stack(scope, receive, send)
│ │ │ │ └ <bound method RequestResponseCycle.send of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x10558f070>>
│ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x10558f0...
│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 9031), 'cl...
│ └ <starlette.middleware.errors.ServerErrorMiddleware object at 0x105429310>
└ <fastapi.applications.FastAPI object at 0x10541b910>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/starlette/middleware/errors.py", line 162, in __call__
await self.app(scope, receive, _send)
│ │ │ │ └ <function ServerErrorMiddleware.__call__.<locals>._send at 0x105576160>
│ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x10558f0...
│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 9031), 'cl...
│ └ <starlette.middleware.base.BaseHTTPMiddleware object at 0x1054292b0>
└ <starlette.middleware.errors.ServerErrorMiddleware object at 0x105429310>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/starlette/middleware/base.py", line 106, in __call__
response = await self.dispatch_func(request, call_next)
│ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next at 0x1055760d0>
│ │ └ <starlette.requests.Request object at 0x10558f850>
│ └ <function request_middleware at 0x10541dc10>
└ <starlette.middleware.base.BaseHTTPMiddleware object at 0x1054292b0>
> File "/Users/xadahiya/workspace/offchain-consensus/consensus_entry_point.py", line 81, in request_middleware
response = await call_next(request)
│ └ <starlette.requests.Request object at 0x10558f850>
└ <function BaseHTTPMiddleware.__call__.<locals>.call_next at 0x1055760d0>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/starlette/middleware/base.py", line 80, in call_next
raise app_exc
└ DataError("Invalid input of type: 'NoneType'. Convert to a bytes, string, int or float first.")
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/starlette/middleware/base.py", line 69, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
│ │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.send_no_error at 0x105576dc0>
│ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x105576af0>
│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 9031), 'cl...
│ └ <starlette.middleware.cors.CORSMiddleware object at 0x105429250>
└ <starlette.middleware.base.BaseHTTPMiddleware object at 0x1054292b0>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/starlette/middleware/cors.py", line 84, in __call__
await self.app(scope, receive, send)
│ │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.send_no_error at 0x105576dc0>
│ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x105576af0>
│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 9031), 'cl...
│ └ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x105429220>
└ <starlette.middleware.cors.CORSMiddleware object at 0x105429250>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
raise exc
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
await self.app(scope, receive, sender)
│ │ │ │ └ <function ExceptionMiddleware.__call__.<locals>.sender at 0x1055d45e0>
│ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x105576af0>
│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 9031), 'cl...
│ └ <fastapi.middleware.asyncexitstack.AsyncExitStackMiddleware object at 0x1054291c0>
└ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x105429220>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
raise e
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
await self.app(scope, receive, send)
│ │ │ │ └ <function ExceptionMiddleware.__call__.<locals>.sender at 0x1055d45e0>
│ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x105576af0>
│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 9031), 'cl...
│ └ <fastapi.routing.APIRouter object at 0x10541b970>
└ <fastapi.middleware.asyncexitstack.AsyncExitStackMiddleware object at 0x1054291c0>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/starlette/routing.py", line 706, in __call__
await route.handle(scope, receive, send)
│ │ │ │ └ <function ExceptionMiddleware.__call__.<locals>.sender at 0x1055d45e0>
│ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x105576af0>
│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 9031), 'cl...
│ └ <function Route.handle at 0x10506da60>
└ APIRoute(path='/metrics/projects', name='get_projects', methods=['GET'])
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/starlette/routing.py", line 276, in handle
await self.app(scope, receive, send)
│ │ │ │ └ <function ExceptionMiddleware.__call__.<locals>.sender at 0x1055d45e0>
│ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x105576af0>
│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 9031), 'cl...
│ └ <function request_response.<locals>.app at 0x105431940>
└ APIRoute(path='/metrics/projects', name='get_projects', methods=['GET'])
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/starlette/routing.py", line 66, in app
response = await func(request)
│ └ <starlette.requests.Request object at 0x1055c1220>
└ <function get_request_handler.<locals>.app at 0x1054318b0>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/fastapi/routing.py", line 225, in app
solved_result = await solve_dependencies(
└ <function solve_dependencies at 0x105054d30>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/fastapi/dependencies/utils.py", line 533, in solve_dependencies
solved = await call(**sub_values)
│ └ {'auth_check_dep': AuthCheck(authorized=True, api_key='public', reason='', owner=SnapshotterMetadata(rate_limit='10000/day;20...
└ <function rate_limit_auth_check at 0x1053c7310>
File "/Users/xadahiya/workspace/offchain-consensus/auth/helpers/helpers.py", line 190, in rate_limit_auth_check
await auth_redis_conn.hset(
│ └ <function HashCommands.hset at 0x10517d700>
└ Redis<ConnectionPool<Connection<host=127.0.0.1,port=6371,db=1>>>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/redis/asyncio/client.py", line 505, in execute_command
return await conn.retry.call_with_retry(
│ │ └ <function Retry.call_with_retry at 0x105274f70>
│ └ <redis.asyncio.retry.Retry object at 0x105479a80>
└ Connection<host=127.0.0.1,port=6371,db=1>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/redis/asyncio/retry.py", line 59, in call_with_retry
return await do()
└ <function Redis.execute_command.<locals>.<lambda> at 0x1055d4670>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/redis/asyncio/client.py", line 480, in _send_command_parse_response
await conn.send_command(*args)
│ │ └ ('HSET', 'user:127.0.0.1', 'rate_limit', '10000/day;20/minute;2/second', 'active', <UserStatusEnum.active: 'active'>, 'callsC...
│ └ <function Connection.send_command at 0x1052859d0>
└ Connection<host=127.0.0.1,port=6371,db=1>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/redis/asyncio/connection.py", line 806, in send_command
self.pack_command(*args), check_health=kwargs.get("check_health", True)
│ │ │ │ └ <method 'get' of 'dict' objects>
│ │ │ └ {}
│ │ └ ('HSET', 'user:127.0.0.1', 'rate_limit', '10000/day;20/minute;2/second', 'active', <UserStatusEnum.active: 'active'>, 'callsC...
│ └ <function Connection.pack_command at 0x105285b80>
└ Connection<host=127.0.0.1,port=6371,db=1>
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/redis/asyncio/connection.py", line 881, in pack_command
for arg in map(self.encoder.encode, args):
│ │ │ └ (b'HSET', 'user:127.0.0.1', 'rate_limit', '10000/day;20/minute;2/second', 'active', <UserStatusEnum.active: 'active'>, 'calls...
│ │ └ <member 'encoder' of 'Connection' objects>
│ └ Connection<host=127.0.0.1,port=6371,db=1>
└ b'uuid'
File "/Users/xadahiya/miniconda3/envs/powerloom/lib/python3.9/site-packages/redis/asyncio/connection.py", line 123, in encode
raise DataError(
└ <class 'redis.exceptions.DataError'>
redis.exceptions.DataError: Invalid input of type: 'NoneType'. Convert to a bytes, string, int or float first