Skip to content

websocat exits with WebSocketError: UTF-8 failure on a specific line #296

@alien999999999

Description

@alien999999999

So, i have a python that calls websocat, everything seems to work nicely, for both text and binary, except a specific line seems to trigger a UTF-8 error, but this line does not contain any UTF-8. Is there some automatic unicode converter sequence that i'm accidentally triggering or something weird like that?

( don't worry about the -k , all this is in a locally controlled network vlan)

called from python subprocess:

process = subprocess.Popen([
        "websocat",
        "--text",
        "--base64",
        "--binary-prefix",
        "B:",
        "-k",
        "--linemode-strip-newlines",
        "--protocol",
        "default",
        remote,
        "-",
    ],
    stdin=subprocess.PIPE,
    stdout=subprocess.PIPE,
)

trigger line sent: property set pico-A39B-16.value_type Temperature

error output:

websocat: WebSocketError: UTF-8 failure
websocat: error running

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions