[Bug]: Document thumbnails not loading
fskaeh opened this issue · 4 comments
What happened?
When in the "Documents" tab of the app, all the thumbnails are blank and showing the URL of the thumbnail instead of the image.
I made sure that this functionality is working properly in other clients, namely the Paperless-NGX web UI and the Swift Paperless (an iOS client).
Tapping the empty thumbnail block to get a full view of the document works fine. The PDF loads and I can see all pages as expected. It's only the thumbnail that won't show.
Steps to reproduce
- Open the app
- Go to "Documents" tabs
Log output from the app
paperless_mobile_logs_2024-03-10.log
Screenshots
Paperless-ng*x Version
2.6.2
Paperless-Mobile Version
3.2.1
Device
Google Pixel 8
Operating System Version
Android 14 - Build AP1A.240305.019.A1
Device Locale
EN-US
Selected Locale
None
Additional Context
No response
Could you try to open the urls shown inside the boxes in your browser (prepend your paperless url) and see if the thumbnails do load?
@astubenbord sorry for the delay, I didn't see there was an answer on this issue!
I gave it a shot and came upon something interesting:
https://paperless.mydomain.xyz/api/documents/389/thumb/
does show the document thumbnail.
https://paperless.mydomain.xyz/api/documents/389/thumb
returns a 404 error.
I'm not sure whether this could be the cause of the issue, since the URL's displayed in the app do contain the trailing /
, but you never know, if there's some kind of sanitization/formatting logic used on that URL before performing the API call, maybe the trailing /
gets lost at that point?