Discord-S.C.U.M icon indicating copy to clipboard operation
Discord-S.C.U.M copied to clipboard

TheGiverOfServers raises KeyError 'user'

Open TheWever opened this issue 2 years ago • 2 comments

The example "TheGiverOfServers.py" raises an error:

Exception ignored in thread started by: <bound method GatewayServer._response_loop of <discum.gateway.gateway.GatewayServer object at 0x1077b13d0>>
Traceback (most recent call last):
  File "/Users/.../Library/Python/3.9/lib/python/site-packages/discum/gateway/gateway.py", line 299, in _response_loop
    func(resp)
  File "/Users/.../Desktop/ATC - PTFS/Defuro/main.py", line 15, in recv_msg
    user = bot.gateway.session.user
  File "/Users/.../Library/Python/3.9/lib/python/site-packages/discum/gateway/session.py", line 42, in user
    return self.settings_ready['user']
KeyError: 'user'

TheWever avatar Sep 14 '22 15:09 TheWever

It seems like the ready_supplemental message isn't being sent causing the gateway connection to drop, did you try with a different token?

NeutronBlast avatar Sep 20 '22 02:09 NeutronBlast

Not yet. Can u try it out rq?

TheWever avatar Sep 21 '22 19:09 TheWever