jarofgreen / Semantic-Scuttle-Jar-For-Android

ABANDONED
GNU General Public License v3.0
4 stars 2 forks source link

Unable to log-in #6

Open versvs opened 11 years ago

versvs commented 11 years ago

Hi,

First of all, sorry for the delay coming back. I installed the app through the android market (google play) but I have been unable to log in from the app.

I looked through the config of the webapp and I didnt find how to allow remote login, but i'm almost sure that this is the cause of my problem.

Any ideas?

ilesinge commented 11 years ago

It can happen if your instance of Semantic Scuttle is a bit slow to answer. Whenever there is a connection timeout, the error message will be ""Username and/or password is incorrect." I plan to make a pull request to fix this once https://github.com/jarofgreen/Semantic-Scuttle-Jar-For-Android/pull/5 is merged.

For your info, the current fixed timeout limits are:

I think this is too small for some instances of Semantic Scuttle (I've had problems myself, so I've made a custom build). The lines responsible for this are in https://github.com/jarofgreen/Semantic-Scuttle-Jar-For-Android/blob/master/app/src/uk/co/jarofgreen/semanticscuttlejar/APICall.java :

 c.setConnectTimeout(1500);
 c.setReadTimeout(300);
versvs commented 11 years ago

Oh, thanks, ilesinge. I will try that approach :)

ilesinge commented 11 years ago

This commit should solve the issue: https://github.com/jarofgreen/Semantic-Scuttle-Jar-For-Android/commit/0dec053e3e6ad0a52c23d837044d4d5da5169df1

ilesinge commented 11 years ago

Also the error message would be "The server was too long to answer." if this is really a timeout issue.