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
Login fails under qBittorrent 3.1.11 #4
Comments
The api wrapper is intended to work only on versions above 3.1.x. Please try mookfist's repo. |
I am using v3.1.11 qbittorrent and receiving the same issue. Traceback (most recent call last):
|
Hi @ryee1 , as said above, it won't work on 3.1.x. You either have to upgrade to latest 3.3.x or use this repo You can get the latest version of qbittorrent on this page. |
How about checking the api version during init and throwing an exception if it is too low (or a 404 is returned)? |
@dozedoff , nice idea. I'll work on this soon :) |
Hi try |
@v1k45 i have to attatch qb.login(us, pw) to let your program work even if i have free access from localhost |
Hi @eliabntt,
This behavior is totally okay as PIP says that you already have all requirements installed, no need to upgrade them.
What version of qBittorrent you're using? On what platform? Does |
I've got the same issue yesterday and the pip update library in /usr/local/bin but the OS's ones has precedence
anyway I can't update on 3.3.x because no stable version for armhf were released and not stable version don't work I've tried every single method.
|
This is being misinterpreted by many folks. By above 3.1.x, i mean any version that starts with 3.1 won't work. This happens because the authentication method was changed to session based after versions above 3.1. You have to either update your qBittorrent client (the newer versions have loads of awesome features :) ) or use mookfist's version of qBittorrent python wrapper. |
It works well with your lib
|
Are you sure that it works? Are you able to perform other actions like extracting list of torrents, adding etc? |
I've extracted successfully my list of torrents ;)
|
I'll keep you informed
|
Thats something I wasn't expecting. I'll test the client with 3.1.11 as soon as I get time. Thanks :) |
Stale issue message |
Following the example labeled "Quick Usage Guide" results in an exception.
python-qbittorrent version: 0.1.4
qBittorrent version 3.1.11
requests version 2.8.1
Traceback:
Traceback (most recent call last):
File "./temp.py", line 13, in
torrents = qb.torrents()
File "/usr/local/lib/python2.7/dist-packages/qbittorrent/client.py", line 168, in torrents
return self._get('query/torrents', params=params)
File "/usr/local/lib/python2.7/dist-packages/qbittorrent/client.py", line 34, in _get
return self._request(endpoint, 'get', **kwargs)
File "/usr/local/lib/python2.7/dist-packages/qbittorrent/client.py", line 62, in _request
raise LoginRequired
qbittorrent.client.LoginRequired: Please login first.
The Web UI is enabled in preferences, accessible with a browser and the username/password combination works in the browser. I have also tested with different passwords, and bypassing authentication for localhost. All these have the same result.
Looking at the login code, and replicating it with requests directly,
results in a status code of '404'. If there's more info that would be helpful, let me know.
The text was updated successfully, but these errors were encountered: