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

bencode parse error #303

Closed
Sharpjackv opened this issue Apr 29, 2024 · 2 comments
Closed

bencode parse error #303

Sharpjackv opened this issue Apr 29, 2024 · 2 comments
Labels
invalid This doesn't seem right

Comments

@Sharpjackv
Copy link

Sharpjackv commented Apr 29, 2024

when attempting to connect to xpra through the web browser I get this error.

2024-04-29 14:28:49,487 Error parsing bencode packet:
2024-04-29 14:28:49,487  invalid b'bencoded string' type identifier: -62 at position 0
2024-04-29 14:28:49,488 Disconnecting client ('127.0.0.1', 51524):
2024-04-29 14:28:49,489  failed to parse bencode packet
2024-04-29 14:28:52,236 Error: http GET request failure for client 127.0.0.1:36754:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/xpra/server/server_core.py", line 1378, in start_http
    WebSocketRequestHandler(sock, frominfo, new_websocket_client,
  File "/usr/lib/python3/dist-packages/xpra/net/websockets/handler.py", line 30, in __init__
    HTTPRequestHandler.__init__(self, sock, addr, web_root, http_headers_dir, script_paths)
  File "/usr/lib/python3/dist-packages/xpra/server/http_handler.py", line 61, in __init__
    BaseHTTPRequestHandler.__init__(self, sock, addr, server)
  File "/usr/lib/python3.10/socketserver.py", line 747, in __init__
    self.handle()
  File "/usr/lib/python3.10/http/server.py", line 433, in handle
    self.handle_one_request()
  File "/usr/lib/python3.10/http/server.py", line 421, in handle_one_request
    method()
  File "/usr/lib/python3/dist-packages/xpra/net/websockets/handler.py", line 75, in do_GET
    HTTPRequestHandler.do_GET(self)
  File "/usr/lib/python3/dist-packages/xpra/server/http_handler.py", line 184, in do_GET
    self.handle_request()
  File "/usr/lib/python3/dist-packages/xpra/net/websockets/handler.py", line 87, in handle_request
    HTTPRequestHandler.handle_request(self)
  File "/usr/lib/python3/dist-packages/xpra/server/http_handler.py", line 189, in handle_request
    self.wfile.write(content)
TypeError: a bytes-like object is required, not 'str'

any help is appreciated.

@totaam
Copy link
Collaborator

totaam commented Apr 30, 2024

Please include more details.
My guess is that you're using an outdated version.
Use a supported version and things will work.

@totaam totaam added the invalid This doesn't seem right label Apr 30, 2024
@totaam
Copy link
Collaborator

totaam commented May 14, 2024

bencode is no longer used, use an up to date version.

@totaam totaam closed this as completed May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants