TechClusterHQ / qbt-portchecker

5 stars 0 forks source link

403 Forbidden: portchecker does not auth with QBitTorrent #2

Closed GamingLiamStudios closed 1 month ago

GamingLiamStudios commented 1 month ago

As stated in the docs

All API methods require authentication (except /api/v2/auth/login, obviously).

This causes any interaction with qbit to return a 403 Forbidden. To fix all that would need to be done is allowing qbit login info at script start and storing the login cookie between requests, as also demonstrated on the qbit api docs.

TechClusterHQ commented 1 month ago

The first paragraph in the "Installation" section of the README describes that you need to enable the "Bypass authentication for clients on localhost" in your qBittorrent settings. This setting disables the need to authenticate when the request is coming from localhost (which is the case when running a docker mod).

TechClusterHQ commented 1 month ago

If you have a reason to keep that setting turned off I could look into optionally adding the login cookies to the requests, just let me know 🙂

GamingLiamStudios commented 1 month ago

completely missed that one :p

TechClusterHQ commented 1 month ago

all good!