Paperless-ngx with DNS-URL and http does not work
Feedback
It seems that the “Paperless-ngx” integration does not work if you use the DNS name for the url. In my case I use http instead of https. Maybe this is the real problem. Maybe it's a second problem. I do not know.
URL
https://www.home-assistant.io/integrations/paperless_ngx/
Version
2025.6.0
Additional information
No response
Hey there @fvgarrel, mind taking a look at this feedback as it has been labeled with an integration (paperless_ngx) you are listed as a code owner for? Thanks!
Code owner commands
Code owners of paperless_ngx can trigger bot actions by commenting:
@home-assistant closeCloses the feedback.@home-assistant rename Awesome new titleRenames the feedback.@home-assistant reopenReopen the feedback.@home-assistant unassign paperless_ngxRemoves the current integration label and assignees on the feedback, add the integration domain after the command.@home-assistant add-label needs-more-informationAdd a label (needs-more-information) to the feedback.@home-assistant remove-label needs-more-informationRemove a label (needs-more-information) on the feedback.
What are you entering in the URL field? The config uses https as the default value. If you’re not using SSL, you need to explicitly type http://yourdomain.com.
I had a problem adding the integration as well, when i used a url with a slash at the end like http://192.168.1.80:8000/
I found a message like this in the logs:
pypaperless.exceptions.BadJsonResponseError: <ClientResponse(http://192.168.1.80:8000/accounts/login/?next=//api/statistics/) [200 OK]>
Notice the double slahes at //api/statistics/. So, i tried the url without the slash, and it worked.
What are you entering in the URL field? The config uses https as the default value. If you’re not using SSL, you need to explicitly type http://yourdomain.com.
Thats actually what I did but with one difference. At the end is a port number like http://subsubsubdomain.subsubdomain.subdomain.yourdomain.com:8000
Hmm, the port at the end should be fine, thats how I test with my docker dev envirenmont (e.g. http://host.docker.internal:8000). Have you tried to use an IP-Adress to verify that the connection itself is working?
Hmm, the port at the end should be fine, thats how I test with my docker dev envirenmont (e.g. http://host.docker.internal:8000). Have you tried to use an IP-Adress to verify that the connection itself is working?
Currently I use the IP Address instead of the DNS name. But using the DNS name would be more convenient.
@rw-django-fan-2020 Could you try nslookup yourdomain.com With the HA SSH addon? I want to make sure its not a DNS issue.
just a quick note from me: wanted to test this and had the same error in my log (next=//api/) using my local ip adress. This only happens, when you have an "/" after your port. Works fine, when it ends just with the port.
@respecreload That could be a reason, yes.
Btw this issue is discussed here: https://github.com/home-assistant/core/issues/147308
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved. If this issue is still relevant, please let us know by leaving a comment 👍 This issue has now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.