[Skygear Chat] Plugin time out


hi skygear, I’ve tried to host skygear with chat plugin locally, but when i try to createDirectConversation, i faced this error

on skygear chat plugin:

chat_1       | Exception in thread Thread-2:
chat_1       | Traceback (most recent call last):
chat_1       |   File "/usr/local/lib/python3.6/threading.py", line 916, in _bootstrap_inner
chat_1       |     self.run()
chat_1       |   File "/usr/local/lib/python3.6/site-packages/skygear/transmitter/zmq.py", line 107, in run
chat_1       |     self.run_message_loop()
chat_1       |   File "/usr/local/lib/python3.6/site-packages/skygear/transmitter/zmq.py", line 124, in run_message_loop
chat_1       |     result = self.listen_to_message_once(timeout)
chat_1       |   File "/usr/local/lib/python3.6/site-packages/skygear/transmitter/zmq.py", line 174, in listen_to_message_once
chat_1       |     response = self.handle_message(message, ctx)
chat_1       |   File "/usr/local/lib/python3.6/site-packages/skygear/transmitter/zmq.py", line 36, in encoded
chat_1       |     response_string = json.dumps(retval)
chat_1       |   File "/usr/local/lib/python3.6/json/__init__.py", line 231, in dumps
chat_1       |     return _default_encoder.encode(obj)
chat_1       |   File "/usr/local/lib/python3.6/json/encoder.py", line 199, in encode
chat_1       |     chunks = self.iterencode(o, _one_shot=True)
chat_1       |   File "/usr/local/lib/python3.6/json/encoder.py", line 257, in iterencode
chat_1       |     return _iterencode(o, 0)
chat_1       |   File "/usr/local/lib/python3.6/json/encoder.py", line 180, in default
chat_1       |     o.__class__.__name__)
chat_1       | TypeError: Object of type 'Record' is not JSON serializable

have i missed something?


Hello @Jemmy_Phan our team needs some time to investigate the issues. We will get back to you next Monday!


Instead of await skygearChat.createDirectConversation(user, null), did you try to put something on the title instead of null first? Like await skygearChat.createDirectConversation(user, "testing")