yDelouis / selfoss-android

Android application for Selfoss
MIT License
41 stars 9 forks source link

selfoss on non-standard port fails to connect #7

Closed nopoz closed 10 years ago

nopoz commented 10 years ago

I have selfoss externally resolvable on a non-standard port Like this: http://mydomain:7003/selfoss https://mydomain:7004/selfoss

Using the app it can't connect to either and shows the "Unable to reach the server." error, but it works fine in a web browser on my workstation

yDelouis commented 10 years ago

Should be fixed in v0.3.1. Re-open the issue if the issue is still here.

nopoz commented 10 years ago

thanks for the fix works for http, but not https no authentication required for either on my side

nopoz commented 10 years ago

Should I create a new issue? I can't re-open an issue I didn't close.

yDelouis commented 10 years ago

The issue is the same with https ? You see the message Unable to reach the server ? I have no instance of selfoss running on custom port. And I tried with port 443 with https and it worked. Could you email me the url of your selfoss instance for testing ?

nopoz commented 10 years ago

yeah still get the same message "Unable to reach the server" for https if I put in https://server:7004/selfoss - the https is removed - maybe that is the problem - that it's always trying http instead of https when I specify it? I've emailed you a link to my selfoss instance for both http and https

yDelouis commented 10 years ago

If you have no authentication required, it will always use http. That's why http:// or https:// is removed from the url. I think I will let the user choose between http and https by typing it in the url field.

nopoz commented 10 years ago

I got https to work by turning on authentication.

When I turn authentication off, it shows "error!" at the bottom of the screen and checks off authentication and shows username and password.

If I leave authentication checked but the username/password fields blank, and click on error, it crashes the program.

Turning on authentication is fine for me if that's what it takes to get it working.

Side note: If I clear the apps cache and data, it doesn't seem to forget my settings, so that makes it kind of hard to wipe settings and start over for testing.

Thanks for the help.

yDelouis commented 10 years ago

Settings are store in an Android account. You have to delete it in the parameters menu of the system.