Skip to content

Move commands always result in an HTTP Error 500: INTERNAL SERVER ERROR #119

Description

@gkaldev

Whether moving tabs with the CLI move command, through the python API, or just with a curl, I'm always getting an HTTP 500 error with move commands (see below for full error message).

All other commands (list, close, update, activate, etc) work just fine.
I'm successfully connected to the mediators:

~  $ bt clients
a.      localhost:4625  260230  chrome/chromium

However move results in this error:

~  $ bt move
MOVE [(2071267041, 2071267039, 0)]
Traceback (most recent call last):
  File "/home/.local/bin/bt", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/.local/share/pipx/venvs/brotab/lib/python3.12/site-packages/brotab/main.py", line 769, in main
    exit(run_commands(sys.argv[1:]))
         ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/.local/share/pipx/venvs/brotab/lib/python3.12/site-packages/brotab/main.py", line 762, in run_commands
    result = args.func(args)
             ^^^^^^^^^^^^^^^
  File "/home/.local/share/pipx/venvs/brotab/lib/python3.12/site-packages/brotab/main.py", line 135, in move_tabs
    api.move_tabs([])
  File "/home/.local/share/pipx/venvs/brotab/lib/python3.12/site-packages/brotab/api.py", line 407, in move_tabs
    self._move_tabs_if_changed(
  File "/home/.local/share/pipx/venvs/brotab/lib/python3.12/site-packages/brotab/api.py", line 370, in _move_tabs_if_changed
    api.move_tabs(move_commands)
  File "/home/.local/share/pipx/venvs/brotab/lib/python3.12/site-packages/brotab/api.py", line 226, in move_tabs
    return self._get('/move_tabs/%s' % quote_plus(commands))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/.local/share/pipx/venvs/brotab/lib/python3.12/site-packages/brotab/api.py", line 295, in _get
    return self._client.get(path, data)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/.local/share/pipx/venvs/brotab/lib/python3.12/site-packages/brotab/api.py", line 48, in get
    with urlopen(request, timeout=self._timeout) as response:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/urllib/request.py", line 215, in urlopen
    return opener.open(url, data, timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/urllib/request.py", line 521, in open
    response = meth(req, response)
               ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/urllib/request.py", line 630, in http_response
    response = self.parent.error(
               ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/urllib/request.py", line 559, in error
    return self._call_chain(*args)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/urllib/request.py", line 492, in _call_chain
    result = func(*args)
             ^^^^^^^^^^^
  File "/usr/lib/python3.12/urllib/request.py", line 639, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 500: INTERNAL SERVER ERROR

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