Paperback-iOS / app

Repository to host app releases, issues, and feature requests for Paperback
https://paperback.moe/
661 stars 20 forks source link

Error message while trying to update Discover page #826

Open danysgit opened 6 months ago

danysgit commented 6 months ago

Preflight Checklist

What type of Apple device have you encountered the bug with?

iPhone

Operating System Version

16.6.1

App Version

0.8.7

Describe the Bug

IMG_1686

Steps to Reproduce

Go to the discover page, try to refresh any source.

Anything Else?

No response

drewjc75 commented 4 months ago

I am seeing this error when trying to log into my Komga server. I got it to work once, using an internal IP address, but then tried to update the server name to point to an external hostname forwarded through my router, and no matter what I do at that point, it fails. It WILL work if I put the Komga demo information into the login fields, but it will crash at least once while I try to enter the text.

It works like this: I tap on the server field, then hit the X to clear it, and type in the demo server URL. Then I tap on the username field, tap the X to clear it, and type in the demo login. Then I tap on the password field and BAM, app crashes. I re-open, then have to go Settings -> Extensions -> Paperback -> Try settings and watch it fail before I can go back into the Server Settings menu, at which point I can update the password.

If I don't do the Try settings option before trying to update the user/password, it will continue crashing every time I tap Server Settings.

If I had to guess, I would say that the Paperback extension is having difficulty updating the URL, the username, and/or the password, which is causing some kind of incongruity, and thus the crash. Even when I DO manage to put all the information in correctly, I get the error listed in the OP. A shortened version of that error is what shows up if I tap Try settings after entering my Komga server's information in:

Failed: Could not connect to server - AsyncOperationTimedOutError

I still don't understand how I managed to get it to work even that one time, but I haven't been able to get it to work since.

EDIT: I exported a log and it turns out that the reason I couldn't connect to my Komga server was because it wasn't allowing an http connection from an external source (i.e. if I'm going to point it to my network's external hostname so I can access from outside my LAN, I have to use https). HOWEVER: This was NOT the error that was showing up on the screen, so it was very deceptive with regard to what was actually going on.