Today, I’m sharing a quick BugFix for the BroTab 1 addon.
This post offers a solution that resolves2 you may have encountered.
Brotab error
- Empty return for bt list command
1 2 3 4 |
bt list # Gives just empty output no error echo $? 0 |
But actually In this case socket is not open
1 2 3 |
netstat -tulpn | grep python # find port curl 'http://localhost:4628/get_browser' curl: (7) Failed to connect to localhost port 4628 after 0 ms: Connection refused |
Solution
- Install werkzeug 3
1pip install werkzeug==2.2.2 # my pip by default uses --user
- Restart Firefox
- Port control and it returns correct output
12345678910netstat -tulpn | grep python # find port be sure your firefox has additional port(Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.)tcp 0 0 127.0.0.1:38727 0.0.0.0:* LISTEN 123151/python3tcp 0 0 127.0.0.1:4625 0.0.0.0:* LISTEN 135875/python3curl 127.0.0.1:4625/list_tabs1.1 balta2ar/brotab: Control your browser's tabs from the command line https://github.com/balta2ar/brotab%bt lista.1.1 balta2ar/brotab: Control your browser's tabs from the command line https://github.com/balta2ar/brotab
You might encounter issues with installing Firefox,4 Be sure to pay attention to this potential problem.