[GH-ISSUE #381] [Bug] Network Request Failed #247

Closed
opened 2026-03-02 11:47:59 +03:00 by kerem · 24 comments
Owner

Originally created by @marco-studer-srf on GitHub (Sep 9, 2024).
Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/381

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?

Screenshot_20240909_094304_Hoarder App

Originally created by @marco-studer-srf on GitHub (Sep 9, 2024). Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/381 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? ![Screenshot_20240909_094304_Hoarder App](https://github.com/user-attachments/assets/763d1a14-5abf-46fd-b70b-605d0d5f5a0a)
kerem 2026-03-02 11:47:59 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@MohamedBassem commented on GitHub (Sep 9, 2024):

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).
Can you tell us if you're using http/https, is Hoarder behind a reverse proxy? Any special setup there?

<!-- gh-comment-id:2337380803 --> @MohamedBassem commented on GitHub (Sep 9, 2024): 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). Can you tell us if you're using http/https, is Hoarder behind a reverse proxy? Any special setup there?
Author
Owner

@marco-studer-srf commented on GitHub (Sep 9, 2024):

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?

<!-- gh-comment-id:2337411618 --> @marco-studer-srf commented on GitHub (Sep 9, 2024): 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?
Author
Owner

@hubono commented on GitHub (Sep 9, 2024):

Hi
I'm having the same issue. I installed hoarder on oracle free tier. All went ok.
I installed the app on Android and it's working good.
Now I installed on iphone, made a new user thought the web browser on the iphone, inputted the same details on the app and i get network request failed. I tried on the wifi and 5g, both fail. Im using http

<!-- gh-comment-id:2338254964 --> @hubono commented on GitHub (Sep 9, 2024): Hi I'm having the same issue. I installed hoarder on oracle free tier. All went ok. I installed the app on Android and it's working good. Now I installed on iphone, made a new user thought the web browser on the iphone, inputted the same details on the app and i get network request failed. I tried on the wifi and 5g, both fail. Im using http
Author
Owner

@CrypticC3s4r commented on GitHub (Sep 10, 2024):

Having the same issue with Android,
It is behind a nginx reverse proxy.

Extension access and Direct Access are functioning well, just mobile makes the problem.

<!-- gh-comment-id:2341815916 --> @CrypticC3s4r commented on GitHub (Sep 10, 2024): Having the same issue with Android, It is behind a nginx reverse proxy. Extension access and Direct Access are functioning well, just mobile makes the problem.
Author
Owner

@MohamedBassem commented on GitHub (Sep 10, 2024):

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.

<!-- gh-comment-id:2341866016 --> @MohamedBassem commented on GitHub (Sep 10, 2024): 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.
Author
Owner

@MohamedBassem commented on GitHub (Sep 14, 2024):

I've sent (github.com/hoarder-app/hoarder@3452e47c94) 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.

<!-- gh-comment-id:2351226078 --> @MohamedBassem commented on GitHub (Sep 14, 2024): I've sent (https://github.com/hoarder-app/hoarder/commit/3452e47c94a55a525620c244f57edb9482989d1c) 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.
Author
Owner

@marco-studer-srf commented on GitHub (Sep 16, 2024):

Running connection test ...
Using address: https://xxx
Network connection failed: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.

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.

<!-- gh-comment-id:2352221398 --> @marco-studer-srf commented on GitHub (Sep 16, 2024): > Running connection test ... Using address: https://xxx Network connection failed: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found. 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.
Author
Owner

@MohamedBassem commented on GitHub (Sep 16, 2024):

@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).

<!-- gh-comment-id:2352235037 --> @MohamedBassem commented on GitHub (Sep 16, 2024): @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).
Author
Owner

@chrishoage commented on GitHub (Oct 14, 2024):

I am experiencing this issue using http - I get the same error

Network connection failed: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.

Except that I'm using http specifically, and the debug output indicates this.

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?

<!-- gh-comment-id:2409548631 --> @chrishoage commented on GitHub (Oct 14, 2024): I am experiencing this issue using http - I get the same error > Network connection failed: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found. Except that I'm using `http` specifically, and the debug output indicates this. 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?
Author
Owner

@marco-studer-srf commented on GitHub (Dec 12, 2024):

@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 res/xml/network_security_config.xml:

<?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"
<!-- gh-comment-id:2539109231 --> @marco-studer-srf commented on GitHub (Dec 12, 2024): @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 `res/xml/network_security_config.xml`: ```xml <?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: ```xml android:networkSecurityConfig="@xml/network_security_config" android:usesCleartextTraffic="true" ```
Author
Owner

@Raizel-thebloodstorm commented on GitHub (Jan 1, 2025):

Bro where to add what ...please explain a little more

<!-- gh-comment-id:2566993634 --> @Raizel-thebloodstorm commented on GitHub (Jan 1, 2025): Bro where to add what ...please explain a little more
Author
Owner

@MohamedBassem commented on GitHub (Jan 1, 2025):

@Raizel-thebloodstorm this is going to be fixed in the next mobile app release. You won't be able to fix it yourself.

<!-- gh-comment-id:2567045622 --> @MohamedBassem commented on GitHub (Jan 1, 2025): @Raizel-thebloodstorm this is going to be fixed in the next mobile app release. You won't be able to fix it yourself.
Author
Owner

@Ciucci666 commented on GitHub (Jan 19, 2025):

I had the same problem, i solved it just by adding the https:// and then it worked

<!-- gh-comment-id:2600881666 --> @Ciucci666 commented on GitHub (Jan 19, 2025): I had the same problem, i solved it just by adding the `https://` and then it worked
Author
Owner

@jnskender commented on GitHub (Jan 19, 2025):

I had the same problem, i solved it just by adding the https:// and then it worked

Also fixed my issue.

<!-- gh-comment-id:2600978967 --> @jnskender commented on GitHub (Jan 19, 2025): > I had the same problem, i solved it just by adding the `https://` and then it worked Also fixed my issue.
Author
Owner

@ClausMunch commented on GitHub (Jan 26, 2025):

I had the same problem, i solved it just by adding the https:// and then it worked

Came here for the cake. This helped! :)

<!-- gh-comment-id:2614145022 --> @ClausMunch commented on GitHub (Jan 26, 2025): > I had the same problem, i solved it just by adding the `https://` and then it worked Came here for the cake. This helped! :)
Author
Owner

@l3s2d commented on GitHub (Feb 2, 2025):

I'm still seeing this issue on mobile app version 1.6.7 with a self-signed certificate.

<!-- gh-comment-id:2629465491 --> @l3s2d commented on GitHub (Feb 2, 2025): I'm still seeing this issue on mobile app version 1.6.7 with a self-signed certificate.
Author
Owner

@MohamedBassem commented on GitHub (Feb 2, 2025):

I have submitted the release to google yesterday with the fix. Hopefully it'll be out in a couple of days.

<!-- gh-comment-id:2629465829 --> @MohamedBassem commented on GitHub (Feb 2, 2025): I have submitted the release to google yesterday with the fix. Hopefully it'll be out in a couple of days.
Author
Owner

@aia832003 commented on GitHub (Feb 3, 2025):

Thanks for the update @MohamedBassem is the apk available for those that would like manually install before the Play Store?

<!-- gh-comment-id:2631352576 --> @aia832003 commented on GitHub (Feb 3, 2025): Thanks for the update @MohamedBassem is the apk available for those that would like manually install before the Play Store?
Author
Owner

@MohamedBassem commented on GitHub (Feb 5, 2025):

The update is live on the play store. Please give it a try and let me know how it goes

<!-- gh-comment-id:2635963150 --> @MohamedBassem commented on GitHub (Feb 5, 2025): The update is live on the play store. Please give it a try and let me know how it goes
Author
Owner

@l3s2d commented on GitHub (Feb 5, 2025):

Working for me now, thank you!

<!-- gh-comment-id:2636786564 --> @l3s2d commented on GitHub (Feb 5, 2025): Working for me now, thank you!
Author
Owner

@aia832003 commented on GitHub (Feb 5, 2025):

GM @MohamedBassem even after the latest update, I'm getting network request failed on my reverse proxy setup via android app. Was working previously and can reach it on my same device via browser. Also seems to work on my iOS devices just fine. Any suggestions?

"Network connection failed: Failed to connect to"

<!-- gh-comment-id:2636904445 --> @aia832003 commented on GitHub (Feb 5, 2025): GM @MohamedBassem even after the latest update, I'm getting network request failed on my reverse proxy setup via android app. Was working previously and can reach it on my same device via browser. Also seems to work on my iOS devices just fine. Any suggestions? "Network connection failed: Failed to connect to"
Author
Owner

@hermann1514 commented on GitHub (Apr 8, 2025):

Same for me.
Login with App: "Network connection failed: Failed to connect to"
With Brwoser from the same IOS device the login is working.

<!-- gh-comment-id:2785355334 --> @hermann1514 commented on GitHub (Apr 8, 2025): Same for me. Login with App: "Network connection failed: Failed to connect to" With Brwoser from the same IOS device the login is working.
Author
Owner

@pixitha commented on GitHub (Jun 29, 2025):

Just dropping a note for folks who are still having issues, even after installing your local roots, you need to go into the cert store settings and actually enable full trust for apps to properly trust the self signed root:

The option "Settings -> General -> About -> Certificate Trust Settings -> ENABLE FULL TRUST"

This layout for settings should be valid for anything iOS 18.0+ versions.

<!-- gh-comment-id:3017271765 --> @pixitha commented on GitHub (Jun 29, 2025): Just dropping a note for folks who are still having issues, even after installing your local roots, you need to go into the cert store settings and actually enable full trust for apps to properly trust the self signed root: The option "Settings -> General -> About -> Certificate Trust Settings -> ENABLE FULL TRUST" This layout for settings should be valid for anything iOS 18.0+ versions.
Author
Owner

@thallada commented on GitHub (Aug 14, 2025):

GM @MohamedBassem even after the latest update, I'm getting network request failed on my reverse proxy setup via android app. Was working previously and can reach it on my same device via browser. Also seems to work on my iOS devices just fine. Any suggestions?

"Network connection failed: Failed to connect to"

I'm also getting the same. I have a self hosted instance I can access and log into my Android phone's browser over https. But the app is unable to connect:

Running connection test ...

Using address: https://redacted.net

Network connection failed: Failed to connect to redacted.net/72...redacted...:443

I'm using version 1.7.0.

I was previously able to log in. In fact my app was logged in when I opened it for the first time in months but I got an infinite loading spinner until I cleared the app storage in settings.

My self hosted server uses a let's encrypt certificate, not a self-signed one.

<!-- gh-comment-id:3190191021 --> @thallada commented on GitHub (Aug 14, 2025): > GM [@MohamedBassem](https://github.com/MohamedBassem) even after the latest update, I'm getting network request failed on my reverse proxy setup via android app. Was working previously and can reach it on my same device via browser. Also seems to work on my iOS devices just fine. Any suggestions? > > "Network connection failed: Failed to connect to" I'm also getting the same. I have a self hosted instance I can access and log into my Android phone's browser over https. But the app is unable to connect: ``` Running connection test ... Using address: https://redacted.net Network connection failed: Failed to connect to redacted.net/72...redacted...:443 ``` I'm using version 1.7.0. I was previously able to log in. In fact my app was logged in when I opened it for the first time in months but I got an infinite loading spinner until I cleared the app storage in settings. My self hosted server uses a let's encrypt certificate, *not* a self-signed one.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/karakeep#247
No description provided.