Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logger crashed #1

Open
BaptisteBdn opened this issue Jul 17, 2019 · 0 comments
Open

Logger crashed #1

BaptisteBdn opened this issue Jul 17, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@BaptisteBdn
Copy link
Member

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

@BaptisteBdn BaptisteBdn added the bug Something isn't working label Jul 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant