-
Notifications
You must be signed in to change notification settings - Fork 46
DioError 403 with correct URL, username, password #20
Comments
Hey Robert, do you use a reverse proxy in front of paperless? |
I'm using Apache and mod_wsgi like described here: https://paperless.readthedocs.io/en/latest/setup.html#making-things-a-little-more-permanent |
Can you confirm that
works? It should return a long list of documents. Edit: This originally did not include the slash at the end. |
Don't forget trailing slashes. I think they are required. |
Using curl I get a redirect to
With correct, incorrect and no password it's the same response. When I open this URL logged in the browser it works:
|
Thanks for confirming. This looks like a server issue then. The browser uses a different authentication mechanism with cookies which is why it works fine there. It's not quite clear to me why this doesn't work but then again I don't work much with Apache. |
try
which should ask you for your password and verify that authentication works. |
Thanks, yes with and also without
The response is the same as above. |
I got it! In order to have basic auth working with wsgi this is needed in the apache conf: https://www.django-rest-framework.org/api-guide/authentication/#setting-the-authentication-scheme Created a PR to the documentation. Now on to try the app :) |
Thanks for posting the solution! This should probably be changed in the documentation(s). Edit: I see you're already one step ahead here 😄 |
Hello,
I'm trying to setup the app and connect to my paperless instance.
I'm using a password manager to copy&paste the URL, username and password of my instance - so they should be correct.
The URL is something like: https://paper.host.tld/paperless/ and the login in the browser is successful as well.
However, in the app I'm getting this Error:
"Error while connecting to server"
DioErro [DioErrorTyoe.RESPONSE]: Http status error [403]
The text was updated successfully, but these errors were encountered: