Comments (26)
Hi,
I have figured out why it crashes on qBittorrent 4.2. Basically it's quite easy to fix, but there are several options how to do it, so I have to decide which one I should choose.
I'll try to release the fix this week.
from qbittorrent-cli.
@Ingvix I was able to reproduce this issue on Linux with qBittorrent 4.2 with alternate UI enabled. I know how to fix it, so I will likely release a version with the fix this evening.
from qbittorrent-cli.
Hi.
Yes, I will add support for the API 2.3.0 used by qBittorrent 4.2.
I guess the current version will still work with it, although some features won't be available. At the moment the qbt CLI supports both legacy API versions and the modern ones (up to 2.2.0). Though there may be some breaking changes. I haven't tried it with qBittorrent 4.2 beta yet.
Did you face any issues when using qbt CLI with qBittorrent 4.2? What are they?
from qbittorrent-cli.
Hi, I had to switch back to normal 4.1.x because I've to adapt to many scripts in order to make it work, and some of are not mine :)
So for now I don't have tried qbt cli with new 4.2 beta.
Do you need some test?
Maybe is not the right time to make changes
https://github.com/qbittorrent/qBittorrent/wiki/Web-API-Documentation#api-v230
is all pending for now
from qbittorrent-cli.
I started getting 500 (Internal Server Error)
after updating qBittorrent to 4.2. Could it be due to API changes or did I mess up something else?
from qbittorrent-cli.
Ok, I see. I will try to run unit tests with 4.2 beta.
from qbittorrent-cli.
Any estimate yet how long it might take? Qbt is a bit necessary for my setup so I was wondering if I should downgrade my qBittorrent for a while if a fix is not coming anytime too soon.
from qbittorrent-cli.
Alright, thanks for the update.
from qbittorrent-cli.
I've uploaded version 1.5.19322.1. It should work with qBittorrent 4.2 in general, though there still may be some partial incompatibilities. If you face some more compatibility issues, please do not hesitate to contact me.
The full compatibility for qBittorrent 4.2 including the new features will be added in qbt 1.6. I'll start working on 1.6 after qBittorrent 4.2 is released.
from qbittorrent-cli.
I'm still getting the same internal server error with 1.5.19322.1. Might the cause be something else than the API change?
from qbittorrent-cli.
@Ingvix What commands do fail? Could you also send me the error stacktrace, please? To get the stacktrace you can run a command with the --print-stacktrace
option, e.g.
qbt torrent list --print-stacktrace
from qbittorrent-cli.
Pretty much all of the ones that try to connect to qBittorrent, namely I tried torrent list
, global info
and qbt torrent check [hash]
. Stacktrace they give also looks pretty much the same.
qbt torrent list --print-stacktrace
QBittorrent.Client.QBittorrentClientRequestException: Response status code does not indicate success: 500 (Internal Server Error).
at QBittorrent.Client.Extensions.HttpClientExtensions.EnsureSuccessStatusCodeEx(HttpResponseMessage message)
at QBittorrent.Client.Extensions.HttpClientExtensions.GetStringAsync(HttpClient client, Uri uri, Boolean returnEmptyIfNotFound, CancellationToken token)
at QBittorrent.Client.QBittorrentClient.GetLegacyApiVersionPrivateAsync(CancellationToken token)
at QBittorrent.Client.QBittorrentClient.<>c__DisplayClass10_0.<<-ctor>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at QBittorrent.Client.QBittorrentClient.PostAsync(Func`2 builder, CancellationToken token, ApiLevel minApiLevel, ApiVersion minApiVersion)
at QBittorrent.CommandLineInterface.Commands.ClientCommandBase.AuthenticateAsync(QBittorrentClient client)
at QBittorrent.CommandLineInterface.Commands.AuthenticatedCommandBase.OnExecuteAsync(CommandLineApplication app, IConsole console)
at McMaster.Extensions.CommandLineUtils.Conventions.ExecuteMethodConvention.InvokeAsync(MethodInfo method, Object instance, Object[] arguments)
at McMaster.Extensions.CommandLineUtils.Conventions.ExecuteMethodConvention.OnExecute(ConventionContext context)
at McMaster.Extensions.CommandLineUtils.Conventions.ExecuteMethodConvention.<>c__DisplayClass0_0.<<Apply>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at McMaster.Extensions.CommandLineUtils.CommandLineApplication.<>c__DisplayClass142_0.<OnExecute>b__0()
at QBittorrent.CommandLineInterface.Program.Main(String[] args)
from qbittorrent-cli.
@Ingvix Hmm, it's very strange. I've checked these commands and everything works.
Could you please check that you have correct qBittorrent URL specified (including port)? I was getting the same stacktrace in case of incorrect URL.
from qbittorrent-cli.
My URL is correct. I'm executing the commands in the same system as qBittorrent is running in. Both http://127.0.01:8081
and http://192.168.1.185:8081
return Internal server error though in browser I can access the WebUI just fine with those addresses.
from qbittorrent-cli.
Any further debugging ideas? I tested setting webui to only use 192.168.1.185 and it refused connections from qbt on 127.0.0.1 and the former gives the same internal server error. So it's there but for some reason something goes wrong.
from qbittorrent-cli.
I just pinpointed the problem. It seems that it couldn't handle the new version of AndersMalmgren's alternative WebUI which included the management of RSS feeds and autodownloads. More about this in this issue: qbittorrent/qBittorrent#453
I understand if you're not interested taking this into account in the developement as it is unorthodox usecase but I just wonder if a fix would really require that much effort. The previous version of that altUI worked without problems with qbt-cli. If you're interested in taking a look, the altWebUI can be achieved by using AndersMalmgren's "qBittorrent-master\src\webui\www" as the alternative WebUI directory and adding "qBittorrent-master\src\icons" as 'images' dir in both 'public' and 'private' directories in the 'www' directory.
I believe I can revert the altUI to an earlier version without problems. The new version doesn't offer that much more functionality so I don't mind for the time being. It just allows adding new RSS feeds, which I don't do that often, from the WebUI.
from qbittorrent-cli.
Hmm, it seems to get internal server error with earlier version as well. Not sure what should I do now. Now I actually hope you at least take a look in Anders' repo to see if there'd be an easy workaround.
from qbittorrent-cli.
Further testing showed that I get internal server error even if the altUI is identical with the regular UI so I think problem doesn't actually lay in the changes in the altUI but in that it's enabled at all. I hope you can investigate this further. Maybe this needs a new issue?
EDIT: On the other hand this wasn't an issue with 4.1 so maybe this is still about the api change?
from qbittorrent-cli.
Ok, thank you for your investigation. I'll try to figure out whether it is possible to make it work with the alternate UI.
from qbittorrent-cli.
So, any news on the issue?
from qbittorrent-cli.
Well, I have tried many different scenarios including custom UI, but I cannot reproduce this issue with qBittorrent 4.2.0 release version.
Today I will release a version with improved compatibility with qBittorrent 4.2, but I guess I won't fix your issue.
from qbittorrent-cli.
So when you activate alternative WebUI you can still use qbt just fine? I' guess I better try out some things myself then, like if recompiling and -installing would fix the issue.
from qbittorrent-cli.
Yes, everything is fine in my case. Though, I have one more thought: I've tested it with qBittorrent on Windows, but it looks likes the source code for Unix-like platforms has some additional checks. I will try to reproduce your scenario Linux, when I have some free time.
from qbittorrent-cli.
Alright, thanks. I'll be waiting.
from qbittorrent-cli.
I can confirm that the latest version fixes the issue.
from qbittorrent-cli.
OK, so as the version 1.5.19350.1 works well enough with qBittorrent 4.2.0, I will close this issue.
The full support for the new features available in qBittorrent 4.2.0 (e.g. Tags) will be available in version 1.6.
from qbittorrent-cli.
Related Issues (20)
- Modified time stamp changed after loading from qbittorent HOT 1
- How to list status of a single torrent ? HOT 2
- rename rss feeds
- torrent list filter return Sequence contains more than one matching element HOT 1
- add exit command HOT 1
- Ability to redirect stdout [Feature Request] HOT 1
- Detected virus during scan job HOT 4
- Add export torrent command
- Feature request: plain text output format HOT 2
- Add all time upload and downloads stats to qbt global info HOT 2
- Support for Debian 12 HOT 2
- Cannot find property HOT 2
- FreeBSD support? HOT 1
- Tags question
- How I prefer to view the output of 'gbt torrent list'
- RSS rule's save path editing doesn't work on qBittorrent 4.6
- Stopped working says key not valid HOT 1
- Filename is incorrectly interpreted as glob pattern HOT 1
- ubuntu mantic HOT 1
- Padding is invalid and cannot be removed. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qbittorrent-cli.