You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While trying out the example script in the repo I am getting the below error OSError: Multiple exceptions: [Errno 61] Connect call failed ('::1', 6379, 0, 0), [Errno 61] Connect call failed ('127.0.0.1', 6379)
This is the script from the repo (I removed the web socket route)
INFO: Will watch for changes in these directories: ['/Users/safwat/Projects/playground']
INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
INFO: Started reloader process [74024] using WatchFiles
INFO: Started server process [74026]
INFO: Waiting for application startup.
ERROR: Traceback (most recent call last):
File "/Users/safwat/Projects/playground/.venv/lib/python3.11/site-packages/redis/asyncio/connection.py", line 603, in connect
await self.retry.call_with_retry(
File "/Users/safwat/Projects/playground/.venv/lib/python3.11/site-packages/redis/asyncio/retry.py", line 59, in call_with_retry
return await do()
^^^^^^^^^^
File "/Users/safwat/Projects/playground/.venv/lib/python3.11/site-packages/redis/asyncio/connection.py", line 640, in _connect
reader, writer = await asyncio.open_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/streams.py", line 48, in open_connection
transport, _ = await loop.create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/base_events.py", line 1087, in create_connection
raise OSError('Multiple exceptions: {}'.format(
OSError: Multiple exceptions: [Errno 61] Connect call failed ('::1', 6379, 0, 0), [Errno 61] Connect call failed ('127.0.0.1', 6379)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/safwat/Projects/playground/.venv/lib/python3.11/site-packages/starlette/routing.py", line 671, in lifespan
async with self.lifespan_context(app):
File "/Users/safwat/Projects/playground/.venv/lib/python3.11/site-packages/starlette/routing.py", line 566, in __aenter__
await self._router.startup()
File "/Users/safwat/Projects/playground/.venv/lib/python3.11/site-packages/starlette/routing.py", line 648, in startup
await handler()
File "/Users/safwat/Projects/playground/test.py", line 14, in startup
await FastAPILimiter.init(r)
File "/Users/safwat/Projects/playground/.venv/lib/python3.11/site-packages/fastapi_limiter/__init__.py", line 85, in init
cls.lua_sha = await redis.script_load(cls.lua_script)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/safwat/Projects/playground/.venv/lib/python3.11/site-packages/redis/asyncio/client.py", line 509, in execute_command
conn = self.connection or await pool.get_connection(command_name, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/safwat/Projects/playground/.venv/lib/python3.11/site-packages/redis/asyncio/connection.py", line 1400, in get_connection
await connection.connect()
File "/Users/safwat/Projects/playground/.venv/lib/python3.11/site-packages/redis/asyncio/connection.py", line 611, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error connecting to localhost:6379. Multiple exceptions: [Errno 61] Connect call failed ('::1', 6379, 0, 0), [Errno 61] Connect call failed ('127.0.0.1', 6379).
ERROR: Application startup failed. Exiting.
My environment is
OS: macOS Ventura 13.2.1
Python: 3.11.1
fastapi-limiter: 0.1.5
The text was updated successfully, but these errors were encountered:
While trying out the example script in the repo I am getting the below error
OSError: Multiple exceptions: [Errno 61] Connect call failed ('::1', 6379, 0, 0), [Errno 61] Connect call failed ('127.0.0.1', 6379)
This is the script from the repo (I removed the web socket route)
My environment is
OS: macOS Ventura 13.2.1
Python: 3.11.1
fastapi-limiter: 0.1.5
The text was updated successfully, but these errors were encountered: