Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    Getting binary data in websockets instead of JSON and it's not utf-8

    Python SDK
    0
    1
    0
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • 0
      0xc0de last edited by

      I am getting this type of data on websockets, since ~1 week now

      "\x03\x0240186\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xe8\x82\x9a\x00\x00\x00\x00\x00\xf8\rc\xad\x92\x01\x00\x00@~\x05\x00\x00\x00\x00\x00\x96\x00\x00\x00\x00\x00\x00\x00\xa8|\x05\x00\x00\x00\x00\x00:B\x0b\x00\x00\x00\x00\x00\x00\x00\x00\x00\xa0-\xf4@\x00\x00\x00\x00\xb0Z\x03Asx\x05\x00\x00\x00\x00\x00\xfe\x83\x05\x00\x00\x00\x00\x00Xu\x05\x00\x00\x00\x00\x00^y\x05\x00\x00\x00\x00\x00\xeb\xdb\x15g\x00\x00\x00\x00\xb4\xe3\xfd\x00\x00\x00\x00\x00\xe8\x1bZ\xbe\x8fy\xa8?\x01\x00\x96\x00\x00\x00\x00\x00\x00\x00\xeb}\x05\x00\x00\x00\x00\x00\x01\x00\x01\x00\x96\x00\x00\x00\x00\x00\x00\x00\xe6}\x05\x00\x00\x00\x00\x00\x01\x00\x01\x00\x96\x00\x00\x00\x00\x00\x00\x00\xb4}\x05\x00\x00\x00\x00\x00\x01\x00\x01\x00\x96\x00\x00\x00\x00\x00\x00\x00\xaf}\x05\x00\x00\x00\x00\x00\x01\x00\x01\x00\x96\x00\x00\x00\x00\x00\x00\x00\xa5}\x05\x00\x00\x00\x00\x00\x01\x00\x00\x00\x96\x00\x00\x00\x00\x00\x00\x00h~\x05\x00\x00\x00\x00\x00\x01\x00\x00\x00\x96\x00\x00\x00\x00\x00\x00\x00\x9a~\x05\x00\x00\x00\x00\x00\x01\x00\x00\x00\x96\x00\x00\x00\x00\x00\x00\x00\x9f~\x05\x00\x00\x00\x00\x00\x01\x00\x00\x00,\x01\x00\x00\x00\x00\x00\x00\xa4~\x05\x00\x00\x00\x00\x00\x02\x00\x00\x00\x96\x00\x00\x00\x00\x00\x00\x00\xae~\x05\x00\x00\x00\x00\x00\x01\x00\x81\x05\x06\x00\x00\x00\x00\x00;\xed\x04\x00\x00\x00\x00\x00\xd4\xf3\x05\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"

      I have tried decoding it with utf-8, ascii none worked. I tried with compressions such as gz, bz, brotli, even that doesn't work.

      What is this struct and how to decode this? It used to be JSON till last week, and I have even checked if the repo has any changes related to this, I can't find any.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post