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

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

Open
gkaldev opened this issue Sep 15, 2024 · 1 comment
Open

Comments

@gkaldev
Copy link

gkaldev commented Sep 15, 2024

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
@gkaldev
Copy link
Author

gkaldev commented Sep 16, 2024

Happy to dive into this and debug further if someone can provide some pointers on how to get started or where to look.
I enabled logging as per instructions here but there wasn't anything else logged besides the error line itself.

Is the only way to investigate further to set up the development environment for brotab and build / load a dev extension to run locally?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant