0

I am using the websocket module for my client in python3, and I am trying to troubleshoot some errors I am getting that lead to the client disconnecting after seemingly random intervals.
When I enabled trace with websocket.enableTrace(True) I can see some entries that I am not sure how to decrypt. Here is an example:

Thread-3:send: b'\x88\x82\xc1$\xf7\xa6\xc2\xcc'

Any idea how to decrypt the message and see if this could explain the source of my problem?

Thank you!

5
  • If the trace contains all the data you can try to restore the byte by unescaping the printed byte-strings. – Robert Nov 2 '20 at 20:24
  • Thanks for the suggestion but that doesn't seem to be the right encoding - I am getting '\x88\x82Á$÷¦ÂÌ' – FlackOverstow Nov 2 '20 at 20:38
  • May be you should not print the unescaped output and instead save it to a binary file and look at it using a hex editor. – Robert Nov 3 '20 at 8:04
  • Can you post more example entries? – pythonpython Nov 24 '20 at 17:41
  • Are you using TLS? – Dvd848 Nov 24 '20 at 18:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.