-
-
Notifications
You must be signed in to change notification settings - Fork 447
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
[Bug] Network Request Failed #381
Comments
No this is unlikely to be a password issue. This is usually the server address being unreachable from the phone or incorrectly setup (e.g invalid certs). |
The server is behind traefik reverse proxy. The server is using https with a self-signed certificate. The root certificate is added as CA on the phone. Could this be a problem? |
Hi |
Having the same issue with Android, Extension access and Direct Access are functioning well, just mobile makes the problem. |
I'll release a hoarder mobile update soon that hopefully can help us debug those network connection issues and show exactly the kind of errors that are being reported. |
I've sent (3452e47) to add a new "Test connection" page to debug server connection issue. I hope this help figure out why the app is not working for you. I've submitted this to apple/google for review, should hopefully be available for download by Monday. |
Okay, it seems to be the certificate. However, I added the certificates to the root certificates of the phone. Accessing Hoarder via browser on the phone is working. |
@marco-studer-srf Glad to see the new connection debugging thing being useful! Let's change the issue title to be about self signed certs then. I'll check if there's any configuration I need to pass to the app manifest so that it can pick up all of your trusted certs (most likely over the weekend). |
I am experiencing this issue using http - I get the same error
Except that I'm using Is the app trying to upgrade to an https connection? If so - then I'm hitting the same self signed cert error - however I do not wish to add this cert to the root certificates of my phone. Can there be an option to allow self signed certs? |
@MohamedBassem In one of my own projects, I happened to face the same issue. Adding the following network security config to the application makes it accept user-added CAs. It also allows cleartext traffic (http), since self-hosters will usually go one of these two ways. In <?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<base-config cleartextTrafficPermitted="true">
<trust-anchors>
<certificates src="system" />
<certificates src="user" /> <!-- this is the part that makes it work -->
</trust-anchors>
</base-config>
</network-security-config> And in your manifest, add: android:networkSecurityConfig="@xml/network_security_config"
android:usesCleartextTraffic="true" |
Bro where to add what ...please explain a little more |
@Raizel-thebloodstorm this is going to be fixed in the next mobile app release. You won't be able to fix it yourself. |
I had the same problem, i solved it just by adding the |
Also fixed my issue. |
I cannot log in using the mobile app. URL is correct.
Could it be that you cannot handle passwords with ridiculous length and number of special characters?
The text was updated successfully, but these errors were encountered: