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

Can't login: Cleartext HTTP traffic not permitted #6

Closed
duylong opened this issue May 23, 2020 · 10 comments
Closed

Can't login: Cleartext HTTP traffic not permitted #6

duylong opened this issue May 23, 2020 · 10 comments
Labels
bug Something isn't working

Comments

@duylong
Copy link

duylong commented May 23, 2020

Hi,

I have a error on the login page: An error occured. This error is not clear. No problem with a browser and the api key is correct.

My URL server is http://192.168.x.x:8080, tested also without http://.

Do you know this issue ?

@patzly patzly added the bug Something isn't working label May 23, 2020
@patzly
Copy link
Owner

patzly commented May 23, 2020

The logcat of your device should contain LoginActivity: requestLogin: VolleyError: followed by a more specific error description.
If this is the case, please send this part of the logcat to patrick@zedler.xyz.
Right now we have to learn for our Abitur, so please be patient. Nevertheless we're trying to solve this issue.

@Gsyltc
Copy link

Gsyltc commented May 23, 2020

Hi,

I cannot connect to my personnal server (with docker in a swarm cluster).
I get an error message : "An error Occured" while login

Web site is reachable over internet and LAN.
Web url is an ovh public address
route is :
ovh -> ISP router -> docker swarm ingress -> docker container (LinuxServer.io cause I run on a arm64v8)

Internet Browser :
Web server connection over LAN : OK
Web server : connection over Internet
Host server port : 9236
API Key :! Created and valid
TLS Encryption : Not for the moment (Will be implemented via Load Balancer later)
Demo server is reachable with the app.
Android version : 10

Thanks

@patzly
Copy link
Owner

patzly commented May 23, 2020

The logcat of your device should contain LoginActivity: requestLogin: VolleyError: followed by a more specific error description.
If this is the case, please send this part of the logcat to patrick@zedler.xyz.
Right now we have to learn for our Abitur, so please be patient. Nevertheless we're trying to solve this issue.

@Gsyltc Please send me your logcat of the moment where the error occures, too. This would be really helpful!

@Gsyltc
Copy link

Gsyltc commented May 23, 2020

The logcat of your device should contain LoginActivity: requestLogin: VolleyError: followed by a more specific error description.

Where can I find it please ?

@patzly
Copy link
Owner

patzly commented May 23, 2020

How to Get a Logcat for Reporting Bugs on Android

If this is too much trouble for you, please be patient. We're working at least on an update where the error description is displayed.

@Gsyltc
Copy link

Gsyltc commented May 23, 2020

I think it will be ok.
I will do this this in the evening.

Thanks

@Roxxor91
Copy link

Roxxor91 commented May 28, 2020

Got the "same" error, here the log:
05-28 12:00:16.370 6459 6459 E LoginActivity: requestLogin: VolleyError: c.a.b.m: java.io.IOException: Cleartext HTTP traffic to 192.168.10.5 not permitted
I'm using the app internally, so I don't really need TLS. When trying TLS instead of http, the handshake fails, but that's an issue of my server configuration.
I'm using your github release.

@patzly
Copy link
Owner

patzly commented May 30, 2020

@Roxxor91 Thanks for the useful log!

The error shouldn't occur in the latest release anymore, as http is now allowed.

@Gsyltc please update your Play Store rating accordingly.

@patzly patzly changed the title Can't login: An error occured Can't login: Clear text HTTP traffic not permitted May 30, 2020
@patzly patzly changed the title Can't login: Clear text HTTP traffic not permitted Can't login: Cleartext HTTP traffic not permitted May 30, 2020
@duylong
Copy link
Author

duylong commented May 30, 2020

The last release resolve this issue. Thanks ;)

@patzly
Copy link
Owner

patzly commented May 30, 2020

Glad to hear that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants