Unknwon bug
Opened this issue · 0 comments
nonylene commented
Failed to create websocket: list indices must be integers or slices, not str
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/root/.cache/pypoetry/virtualenvs/more-one-memo-9TtSrW0h-py3.9/lib/python3.9/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/root/.cache/pypoetry/virtualenvs/more-one-memo-9TtSrW0h-py3.9/lib/python3.9/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/root/.cache/pypoetry/virtualenvs/more-one-memo-9TtSrW0h-py3.9/lib/python3.9/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/root/.cache/pypoetry/virtualenvs/more-one-memo-9TtSrW0h-py3.9/lib/python3.9/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/app/more_one_memo/forwarder/main.py", line 25, in main
asyncio.run(forwarder.run(forwarder_config))
File "/usr/local/lib/python3.9/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/local/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/app/more_one_memo/forwarder/forwarder.py", line 68, in run
await websocket_client.run(rtm_connect.url)
File "/app/more_one_memo/slack/websocket.py", line 36, in run
await self._on_message(message)
File "/app/more_one_memo/slack/websocket.py", line 29, in _on_message
await handler(message_data)
File "/app/more_one_memo/forwarder/handlers.py", line 26, in filtered_handler
await h(json)
File "/app/more_one_memo/forwarder/message_handler.py", line 70, in handle_message
message = Message.from_json(json)
File "/app/more_one_memo/slack/model/event.py", line 82, in from_json
previous_message = Message.Message.from_json(json['previous_message'])
File "/app/more_one_memo/slack/model/event.py", line 23, in from_json
json['type'], json.get('subtype'), json.get('user'), json.get('bot_id'), json.get('text')
TypeError: list indices must be integers or slices, not str