Traceback (most recent call last):
File "bot.py", line 37, in <module>
sentry_dsn=sentry_dsn)
File "/home/jtagt/mee6/chat-bot/mee6.py", line 30, in __init__
self.db = Db(self.redis_url, self.mongo_url, self.loop)
File "/home/jtagt/mee6/chat-bot/database.py", line 16, in __init__
self.redis_address = parse_redis_url(redis_url)
File "/home/jtagt/mee6/chat-bot/utils.py", line 8, in parse_redis_url
result = re.match(pattern, redis_url).groups()
File "/usr/lib/python3.5/re.py", line 163, in match
return _compile(pattern, flags).match(string)
TypeError: expected string or bytes-like object
ERROR:asyncio:Task was destroyed but it is pending!
task: <Task pending coro=<Db.create() running at /home/jtagt/mee6/chat-bot/database.py:18>>
/usr/lib/python3.5/asyncio/base_events.py:412: RuntimeWarning: coroutine 'Db.create' was never awaited
ERROR:asyncio:Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7f2d9115f438>
我正在尝试运行机器人,但由于数据库问题我无法弄清楚或追踪它失败了。我使用的是最新版本的Redis DB。如果有人能帮助我,那就太好了。