Git Product home page Git Product logo

Comments (6)

astubenbord avatar astubenbord commented on June 2, 2024 1

Thanks for this. However, I think the app should provide more comprehensive information to the user about what exactly went wrong. I'll add more log output and better feedback. I'll open a new issue.

from paperless-mobile.

brpaz avatar brpaz commented on June 2, 2024

I have a similar problem but mine is stuck at "Authenticating".

My user has Superuser permission.

Pixel 7, Android 14.

Here are the logs:

2023-12-14 21:30:07.277	DEBUG   --- [      AuthenticationCubit] - restoreSession           : Trying to restore previous session...
2023-12-14 21:30:07.277	DEBUG   --- [      AuthenticationCubit] - restoreSession           : There is nothing to restore.
2023-12-14 21:30:07.279	INFO    --- [                         ] -                          : Setting refresh rate to 90.0
2023-12-14 21:33:12.448	DEBUG   --- [      AuthenticationCubit] - login                    : Trying to log in brpaz@do***ev...
2023-12-14 21:33:12.451	DEBUG   --- [      AuthenticationCubit] - _addUser                 : Adding new user brpaz@do***ev..
2023-12-14 21:33:12.451	DEBUG   --- [      AuthenticationCubit] - _addUser                 : Fetching bearer token from the server...
2023-12-14 21:37:45.880	DEBUG   --- [      AuthenticationCubit] - restoreSession           : Trying to restore previous session...
2023-12-14 21:37:45.880	DEBUG   --- [      AuthenticationCubit] - restoreSession           : There is nothing to restore.
2023-12-14 21:37:45.882	INFO    --- [                         ] -                          : Setting refresh rate to 90.0
2023-12-14 21:38:36.188	DEBUG   --- [      AuthenticationCubit] - login                    : Trying to log in brpaz@do***ev...
2023-12-14 21:38:36.189	DEBUG   --- [      AuthenticationCubit] - _addUser                 : Adding new user brpaz@do***ev..
2023-12-14 21:38:36.189	DEBUG   --- [      AuthenticationCubit] - _addUser                 : Fetching bearer token from the server...
2023-12-14 21:44:28.286	DEBUG   --- [      AuthenticationCubit] - restoreSession           : Trying to restore previous session...
2023-12-14 21:44:28.286	DEBUG   --- [      AuthenticationCubit] - restoreSession           : There is nothing to restore.
2023-12-14 21:44:28.288	INFO    --- [                         ] -                          : Setting refresh rate to 90.0
2023-12-14 21:44:52.549	DEBUG   --- [      AuthenticationCubit] - login                    : Trying to log in brpaz@do***ev...
2023-12-14 21:44:52.549	DEBUG   --- [      AuthenticationCubit] - _addUser                 : Adding new user brpaz@do***ev..
2023-12-14 21:44:52.549	DEBUG   --- [      AuthenticationCubit] - _addUser                 : Fetching bearer token from the server...

from paperless-mobile.

CoReYeDe avatar CoReYeDe commented on June 2, 2024

Tested with 3.1.8
Same problem.
Here is the log

image

Any Ideas?

I use paperless behind nginx-proxy-manager with cert from letsencrypt.
When i enter the direct url to paperless, i can login and start using the app :)

from paperless-mobile.

CoReYeDe avatar CoReYeDe commented on June 2, 2024

I found the Problem after a bit research and its so simple..
NginxProxyManager proxy-host is configured with access-list
And with access-list "publicly accessible" the app work without problem.
After reenable the access-list (that is scoped to my local subnet) i can not fetch the userinformation.

image

The problem is the option to "pass auth to host" - this option must be enabled
I think NPM is removing the auth-header from the request of the app and so i get an 401-Error in the NPM-Proxy-Host-Logs for my Device on my allowed subnet.

So for me, the issue is not app-related and can be closed (i think it can be useful for other appusers they host paperless behind NPM)

from paperless-mobile.

slaesh avatar slaesh commented on June 2, 2024

"same" error here, actually not the same, but similar..

it is user-related. at least on my side..

I have two users.

  1. can login properly. (superuser, not the admin)
  2. cant login, same device, same app. (normal user)

are there any rights needed to use the app, in particular the api? cant find any "api" rights under the user and rights section?

the error in the logs says something like "your server is using a different api version" .. but it is not, since the one user works just fine :)

from paperless-mobile.

slaesh avatar slaesh commented on June 2, 2024

nvm.. as we in germany say.. "He who can read is clearly at an advantage".. the login screen suggests what rights are needed... 🙈

from paperless-mobile.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.