erickok / transdroid

Manage your torrents from your Android device
GNU General Public License v3.0
1.28k stars 201 forks source link

"Internal error building request" on qbittorrent 4.1.6 with Traefik #500

Closed kamilmirza closed 5 years ago

kamilmirza commented 5 years ago

getting "Internal error building request" on qbittorrent 4.1.x with Traefik (reverse proxy) port is set to 0 (works for Traefik) have the exact same settings with deluge server and it works fine everything is on docker

erickok commented 5 years ago

It's hard for me to check now, but a port 0 sounds very weird. Did you try to set this in Transdroid (under Port number in Advanced Settings)?

On Tue, 21 May 2019, 12:53 Kamil Mirza, notifications@github.com wrote:

getting "Internal error building request" on qbittorrent 4.1.6 with Traefik (reverse proxy) port is set to 0 (works for Traefik) have the exact same settings with deluge server and it works fine everything is on docker

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/erickok/transdroid/issues/500?email_source=notifications&email_token=AABP6ZL2GN6PNOKBSIVDGU3PWPPDLA5CNFSM4HOKGNKKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GU6GSIQ, or mute the thread https://github.com/notifications/unsubscribe-auth/AABP6ZOFJ4R33LWXFZNLK3LPWPPDLANCNFSM4HOKGNKA .

kamilmirza commented 5 years ago

if I use port 80 or 443 or it says "Error during communication; check your connections" when using Traefik i have the exact same config with deluge server (port 0, traefik) and it works yes I am referring to Port Number in Advanced Settings

erickok commented 5 years ago

Can you reach the qBittorrent web interface from your mobile browser?

On Tue, 21 May 2019, 21:06 Kamil Mirza, notifications@github.com wrote:

if I use port 80 or 443 or it says "Error during communication; check your connections" when using Traefik i have the exact same config with deluge server (port 0, traefik) and it works yes I am referring to Port Number in Advanced Settings

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/erickok/transdroid/issues/500?email_source=notifications&email_token=AABP6ZLS6IIX74GPWETU663PWRI4ZA5CNFSM4HOKGNKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODV5A5HA#issuecomment-494538396, or mute the thread https://github.com/notifications/unsubscribe-auth/AABP6ZNOBYXIOHQ3HF4LJRDPWRI4ZANCNFSM4HOKGNKA .

kamilmirza commented 5 years ago

yes of course

erickok commented 5 years ago

And that connects to which port?

On Wed, 22 May 2019, 08:33 Kamil Mirza, notifications@github.com wrote:

yes of course

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/erickok/transdroid/issues/500?email_source=notifications&email_token=AABP6ZP4O6TIYA4PRB2AKHLPWTZMTA5CNFSM4HOKGNKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODV6FPZY#issuecomment-494688231, or mute the thread https://github.com/notifications/unsubscribe-auth/AABP6ZIJU7ED2WDJIWHCLGDPWTZMTANCNFSM4HOKGNKA .

kamilmirza commented 5 years ago

qb.domain.com Traefik handles redirects 80 to 443

erickok commented 5 years ago

The if you use SSL, use port number 443, otherwise port 80. Sorry I can give only limited support for reverse proxy setups as really there are too many to know about all of them. In the end as long as Transdroid can connect to the right endpoint it will work. You might need to set up the 'folder' setting (perhaps to /)

On Wed, 22 May 2019, 19:36 Kamil Mirza, notifications@github.com wrote:

qb.domain.com Traefik handles redirects 80 to 443

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/erickok/transdroid/issues/500?email_source=notifications&email_token=AABP6ZPDA4GP53GFFF5ZYMDPWWHCNA5CNFSM4HOKGNKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODV747OI#issuecomment-494915513, or mute the thread https://github.com/notifications/unsubscribe-auth/AABP6ZNLV7EXBAONCHYXVXDPWWHCNANCNFSM4HOKGNKA .

kamilmirza commented 5 years ago

i have resolved this issue by disabling the following on qbittorrent server qBittorrent > Options > Web UI > Enable Host header validation

lukasmrtvy commented 4 years ago

@erickok can confirm, browser (chrome) works ok, transdroid nor qBittorrent controller does not work unless Enable Host header validation in qBittorrent is unchecked. There must be something wrong with User Agent, Request headers...