fredrikburmester / streamyfin

A Jellyfin client build with Expo
Mozilla Public License 2.0
1.04k stars 27 forks source link

[iOS] "A network error occurred." even though address correct. #29

Open norahqueen opened 2 months ago

norahqueen commented 2 months ago

Describe the bug When trying to sign into a local jellyfin instance over http, I get the warning "A network error occurred. Did you enter the correct server URL?" even though the server URL is definitely correct, and works in other jellyfin apps. I wonder if this is related to the Android bug that was just fixed? Otherwise, something funky seems like it by be going on with the URL parsing, which I found out when adding a trailing forward-slash. Will post screenshots of what I mean below.

To Reproduce Steps to reproduce the behavior: Already described above.

Screenshots If applicable, add screenshots to help explain your problem. So, this first screenshot, results in the second screenshot's sever URL IMG_8717 IMG_8718

Then same again for the third and fourth screenshots: IMG_8719 IMG_8720

If the parser is seeing forward slashes as escape characters, it might not be seeing the URLs correctly. However, this doesn't occur with "http://some.url" without a trailing slash, so I don't know if this is the root issue or not.

Smartphone (please complete the following information):

ebits21 commented 2 months ago

While testing #28 I re-installed and tried to login to my local server and it wouldn't work (even though it did before). Even after installing again wouldn't work.

Worked after resetting my phone. Weird.

widardd commented 2 months ago

Same on android, perhaps only HTTPS is implemented?

ebits21 commented 2 months ago

Same on android, perhaps only HTTPS is implemented?

No HTTP definitely can work

fredrikburmester commented 2 months ago

@norahqueen did you purposefully miss-type the url in the first screenshots (the ones with tripple and single slash) to test? I indeed have a parser. I'm gonna look it over and see if it's doing something strange.

sy6sy2 commented 2 months ago

Same error here. If I enter a server address with a trailing slash like http://foo.fr/ then after clicking on "Connect" the app remove a slash from the address giving http:/foo.fr like in the first screenshot. (Tested with version 0.3.4 from TestFlight)

fredrikburmester commented 2 months ago

The new version 0.4.0 have no parsing of the URL. So that won't be an issue anymore.