Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to get past the login screen #41

Open
fcpk-fr opened this issue Sep 2, 2020 · 0 comments
Open

Unable to get past the login screen #41

fcpk-fr opened this issue Sep 2, 2020 · 0 comments

Comments

@fcpk-fr
Copy link

fcpk-fr commented Sep 2, 2020

Hello,
Tried connecting to Server: https://play.dhis2.org/demo
Username: android
Password: Android123
It does not go past the login screen.
No error though, I get the below trace:
I/WorkService: onCreate()
Service started
I/WorkService: loginUser
I/GET: https://play.dhis2.org/demo/api/me
I/302:
<title>302 Found</title>

302 Found

nginx/1.17.10


I/WorkService: onDestroy()

I deployed a DHIS2 instance on my localhost, there i get an error...
I/WorkService: onCreate()
Service started
I/WorkService: loginUser
I/GET: http://localhost:9999/dhis2/api/me
W/System.err: java.io.IOException: Cleartext HTTP traffic to localhost not permitted
at com.android.okhttp.HttpHandler$CleartextURLFilter.checkURLPermitted(HttpHandler.java:127)
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:462)
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:131)
at org.dhis2.mobile.network.HTTPClient.get(HTTPClient.java:69)
W/System.err: at org.dhis2.mobile.processors.LoginProcessor.tryToLogIn(LoginProcessor.java:115)
at org.dhis2.mobile.processors.LoginProcessor.loginUser(LoginProcessor.java:63)
at org.dhis2.mobile.WorkService.runMethod(WorkService.java:147)
at org.dhis2.mobile.WorkService.access$000(WorkService.java:58)
at org.dhis2.mobile.WorkService$1.run(WorkService.java:96)
W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:923)
W/System.err: java.io.IOException: Cleartext HTTP traffic to localhost not permitted
at com.android.okhttp.HttpHandler$CleartextURLFilter.checkURLPermitted(HttpHandler.java:127)
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:462)
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:411)
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:542)
at org.dhis2.mobile.network.HTTPClient.get(HTTPClient.java:83)
at org.dhis2.mobile.processors.LoginProcessor.tryToLogIn(LoginProcessor.java:115)
at org.dhis2.mobile.processors.LoginProcessor.loginUser(LoginProcessor.java:63)
at org.dhis2.mobile.WorkService.runMethod(WorkService.java:147)
at org.dhis2.mobile.WorkService.access$000(WorkService.java:58)
at org.dhis2.mobile.WorkService$1.run(WorkService.java:96)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:923)
I/WorkService: onDestroy()

Any help is appreciated...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant