HTTPS Port not taken into account

Report & discuss bugs found in SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
kevou
Newbie
Newbie
Posts: 4
Joined: August 5th, 2014, 3:32 am

HTTPS Port not taken into account

Post by kevou »

Platform: Win7
sab: 0.7.18

Case: Change of https port via API call not taken into account after reboot of sabnzbd (although it will appear well in the field). It is not the case if manually changing it via configuration panel and clicking save button, that would work. NB: if rebooting the computer then the https port is taken into account, I guess something works at first launch that doesnt when rebooting sabnzbd.

Test: Change https port via API call, either try to reboot via API or Configuration reboot button, and double click on the sabnzbd tray icon, you'll see that new https port has not been taken into account in the URL. Test failed.

Level: Truly annoying.

Tell me if this works on your side.

Cheers
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: HTTPS Port not taken into account

Post by shypike »

Likely never to have been tested.
I'll have a look.
Just to satisfy my curiosity: any particular reason to do this over the API?
kevou
Newbie
Newbie
Posts: 4
Joined: August 5th, 2014, 3:32 am

Re: HTTPS Port not taken into account

Post by kevou »

I guess you deserve an answer if you have a look at it :-p
My VPN "port forwarding" is changing every two hours, I'm using the sabnzbd API to be aligned with the new port.
And when it is not aligned, no more access from any external tool (ex: SABMobile) !
Now you see why it is annoying ;-)
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: HTTPS Port not taken into account

Post by shypike »

Works for me.
However, are you using the right keyword?
SABnzbd's configuration is a little weird in this area (historical reasons).
When you enable ONLY https, then the "port" field is used to get the https port number.
When you enable both http and https, "port" is for http and "https_port" is for https.
kevou
Newbie
Newbie
Posts: 4
Joined: August 5th, 2014, 3:32 am

Re: HTTPS Port not taken into account

Post by kevou »

yes sir, were here talking about the https_port.
Did you try full API test? Changing https_port+reboot via API? Is this on windows? As I said it appears modified in the field but the exe or service is still connected to old port somehow.
kevou
Newbie
Newbie
Posts: 4
Joined: August 5th, 2014, 3:32 am

Re: HTTPS Port not taken into account

Post by kevou »

ok it seems i had a bad call of reboot function in my code after refactoring. sorry about that and thanks for your help!
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: HTTPS Port not taken into account

Post by shypike »

No problem. At least the function has been tested now, by both you and me. :)
Post Reply