home-assistant.io icon indicating copy to clipboard operation
home-assistant.io copied to clipboard

Paperless-ngx with DNS-URL and http does not work

Open rw-django-fan-2020 opened this issue 6 months ago • 7 comments

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

rw-django-fan-2020 avatar Jun 13 '25 20:06 rw-django-fan-2020

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 close Closes the feedback.
  • @home-assistant rename Awesome new title Renames the feedback.
  • @home-assistant reopen Reopen the feedback.
  • @home-assistant unassign paperless_ngx Removes the current integration label and assignees on the feedback, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information) to the feedback.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information) on the feedback.

home-assistant[bot] avatar Jun 13 '25 20:06 home-assistant[bot]

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.

fvgarrel avatar Jun 13 '25 23:06 fvgarrel

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.

mjakob-gh avatar Jun 14 '25 16:06 mjakob-gh

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

rw-django-fan-2020 avatar Jun 14 '25 17:06 rw-django-fan-2020

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?

fvgarrel avatar Jun 14 '25 17:06 fvgarrel

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 avatar Jun 14 '25 21:06 rw-django-fan-2020

@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.

fvgarrel avatar Jun 16 '25 20:06 fvgarrel

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 avatar Jun 28 '25 18:06 respecreload

@respecreload That could be a reason, yes.

Btw this issue is discussed here: https://github.com/home-assistant/core/issues/147308

fvgarrel avatar Jun 28 '25 19:06 fvgarrel

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.

github-actions[bot] avatar Aug 27 '25 21:08 github-actions[bot]