paulgessinger / swift-paperless

Native iOS app for interacting with a Paperless-ngx installation to manage documents
https://swift-paperless.gessinger.dev/
MIT License
372 stars 15 forks source link

Login Url Not working - data couldnt be read #148

Open pshannon-git opened 1 week ago

pshannon-git commented 1 week ago

I've tried both using Https and http, as well as switching the ports for my paperless docker container but I still can't reach the url to sign in.

The Error Reads : "The entered URL is invalid. The data couldn't be read because it is missing."

Would love to use the app but for whatever reason this is causing me issues. No problem signing into other apps using this type of login protocol.

paulgessinger commented 1 week ago

@pshannon-git Can you send me logs from the login screen?

pshannon-git commented 1 week ago

Went ahead and created new session this morning to test both http and https following.

logs.txt

paulgessinger commented 1 week ago

The SSL error seems to be pretty generic. Are you using a self-signed certificate?

The other error looks like a decoding error, interestingly enough.

What version of Paperless-ngx are you running?

pshannon-git commented 1 week ago

For the https its a lets encrypt certificate.

Paperless-ngx version 1.8.0 docker container

Strangely I also type in my cridentials and a "login successful" message appears - following an error.

logs2.txt

pshannon-git commented 1 week ago

So I just decided to scrap my old container and rebuild using the docker compose postgres from the paperless-ngx github. Looks to be working now!

Considering I had an old compose file that I pulled from linuxserver initially, I looked and the page is depreciated. https://docs.linuxserver.io/deprecated_images/docker-paperless-ngx/ . Looks like the error possibly had to do with the built in redis instance (I never added an external instance) not passing information to the app?

REDIS_URL= #optional

Specify an external redis instance to use. Can optionally include a port (redis:6379) and/or db (redis/foo). If left blank or not included, will use a built-in redis instance. If changed after initial setup will also require manual modification of /config/settings.py

Thanks for your help I appreciate it.

paulgessinger commented 1 week ago

Hm ok.

1.8.0 is pretty old, it could be that the app just fails to parse some response from that version and threw an error. I'm probably not special casing this, and therefore the error is pretty generic.

I'll try to see if I can reproduce something similar by using that version.

Anyway, glad it's working now!

Now for the certificate: I also use let's encrypt and it's working without a hitch for me. Did you try this again with the newer version?

pshannon-git commented 1 week ago

Yeah foolishly I didn't realize I was using the depreciated "image: lscr.io/linuxserver/paperless-ngx:latest", which stopped at 1.8.0, instead of the paperless-ngx github image url, which is now 2.13.5.

Https working well with the newer version!