hoarder-app / hoarder

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
https://hoarder.app
GNU Affero General Public License v3.0
6.48k stars 235 forks source link

iOS App Connection Test Failed #616

Closed LightningMarshal closed 2 weeks ago

LightningMarshal commented 2 weeks ago

Describe the Bug

When attempting to use the iOS app and pointing it at the hoarder server address I get an error message that reads "Network connection failed: The file "health" couldn't be opened because there is no such file. I am able to hit the app using a web browser with the same address, however I am not to able to log in via the app and receive the network request failed error. I am wondering if anyone else is able to reproduce this or if this is user error on my part at some point in the process?

I have a docker container running on a Raspberry Pi and I am able to view and use the Hoarder from multiple devices, but not through the iOS app.

Steps to Reproduce

  1. Take a deep breath
  2. Verify that the docker container on and running.
  3. Verry that you are to use and view Hoarder using an alternative method such as a web browser.
  4. Open the Hoarder iOS app
  5. Enter in your server address where hoarder can be accessed
  6. Press the next button
  7. Enter in hoarder credentials: username and password
  8. Press sign in
  9. Stare at "Network request failed" text in confusion

Expected Behaviour

Pressing the sign in button would allow the user access to their saved material and the ability to save new material and the core functionality of the app would be enabled.

Screenshots or Additional Context

No response

Device Details

iOS 18.0.1

Exact Hoarder Version

v0.18.0

MohamedBassem commented 2 weeks ago

@LightningMarshal In the first screen where you enter your server address there's a connection debugging tool. Can you give it a try and share its output?

LightningMarshal commented 2 weeks ago

@MohamedBassem Thank you for taking a look at this.

Here is the output from the diagnostic tool: image

MohamedBassem commented 2 weeks ago

can you try adding 'http://' at the beginning of the server address?

LightningMarshal commented 2 weeks ago

That was the issue. I had tried https, but was confused when just the IP worked in other browsers.

image

I might fork a branch to create simple documentation to help out other idiots like me. Thank you for your help. Closes #616

MohamedBassem commented 2 weeks ago

I think this is a missing validation on our side. A more descriptive error message would have made this easier to debug :)