Skip to content

Logger crashed #1

@BaptisteBdn

Description

@BaptisteBdn

Hello,

While receiving a 19271 [Thread-96] DEBUG com.ankamagames.dofus.core.network.DofusConnector - [Receiving] packet : 883 - ChatServerWithObjectMessage
The logger crashed with the following error :

--- Logging error ---
Traceback (most recent call last):
  File "C:\Users\baptiste\AppData\Local\Programs\Python\Python37\lib\logging\__init__.py", line 1028, in emit
    stream.write(msg + self.terminator)
  File "C:\Users\baptiste\AppData\Local\Programs\Python\Python37\lib\encodings\cp1252.py", line 19, in encode
    return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\ufffc' in position 178: character maps to <undefined>
Call stack:
  File "C:\Users\baptiste\AppData\Local\Programs\Python\Python37\lib\threading.py", line 890, in _bootstrap
    self._bootstrap_inner()
  File "C:\Users\baptiste\AppData\Local\Programs\Python\Python37\lib\threading.py", line 926, in _bootstrap_inner
    self.run()
  File "C:\Users\baptiste\AppData\Local\Programs\Python\Python37\lib\threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\baptiste\Documents\DofusBot\BlackFalconCore\tools\ws_connector.py", line 21, in __init__
    self.connection.run_forever()
  File "C:\Users\baptiste\Documents\DofusBot\BlackFalconCore\venv\lib\site-packages\websocket\_app.py", line 305, in run_forever
    dispatcher.read(self.sock.sock, read, check)
  File "C:\Users\baptiste\Documents\DofusBot\BlackFalconCore\venv\lib\site-packages\websocket\_app.py", line 53, in read
    if not read_callback():
  File "C:\Users\baptiste\Documents\DofusBot\BlackFalconCore\venv\lib\site-packages\websocket\_app.py", line 289, in read
    self._callback(self.on_message, data)
  File "C:\Users\baptiste\Documents\DofusBot\BlackFalconCore\venv\lib\site-packages\websocket\_app.py", line 343, in _callback
    callback(*args)
  File "C:\Users\baptiste\Documents\DofusBot\BlackFalconCore\tools\ws_connector.py", line 24, in on_message
    self.logger.info('Recieved message from API: ' + message)
Message: 'Recieved message from API: {"message":"ChatServerWithObjectMessage","id":883,"content":{"channel":5,"content":"  ","timestamp":1563398244,"fingerprint":"diko1p7d","senderId":5.23841241296E11,"senderName":"La-Morlette","prefix":"","senderAccountId":52032772,"objects":[{"position":63,"objectGID":18715,"effects":[{"actionId":138,"value":30},{"actionId":420,"value":30},{"actionId":752,"value":18},{"actionId":2804,"value":15},{"actionId":2801,"value":15},{"actionId":1151,"value":18711}],"objectUID":59679977,"quantity":1},{"position":63,"objectGID":11758,"effects":[{"actionId":125,"value":311},{"actionId":119,"value":47},{"actionId":126,"value":46},{"actionId":124,"value":43},{"actionId":424,"value":10},{"actionId":428,"value":10},{"actionId":178,"value":10},{"actionId":414,"value":4},{"actionId":240,"value":2},{"actionId":117,"value":1},{"actionId":430,"value":1},{"actionId":754,"value":7},{"actionId":99,"min":12,"max":18},{"actionId":99,"min":12,"max":18},{"actionId":93,"min":6,"max":9}],"objectUID":59683631,"quantity":1},{"position":63,"objectGID":17681,"effects":[{"actionId":125,"value":397},{"actionId":118,"value":78},{"actionId":124,"value":32},{"actionId":414,"value":22},{"actionId":430,"value":14},{"actionId":422,"value":14},{"actionId":213,"value":10},{"actionId":161,"value":10},{"actionId":212,"value":7},{"actionId":115,"value":6},{"actionId":117,"value":1},{"actionId":755,"value":30},{"actionId":97,"min":20,"max":25},{"actionId":95,"min":16,"max":20}],"objectUID":58968950,"quantity":1}]}}'
Arguments: ()

Any idea why ?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions