thomasbrueggemann / paperless-desktop

🍃 macOS app that uses the paperless API to manage your document scans.
GNU General Public License v3.0
582 stars 52 forks source link

paperless-desktop wont open any documents #33

Open rototom opened 6 years ago

rototom commented 6 years ago

Its seems to start just finde and gives me an overview of my documents, but when I try to open one of them, it is displayer for about 2 seconds, then the screen is completely white, and there no more buttons or anything. I have to close the application in the Terminalwindow bildschirmfoto vom 2017-11-12 13-52-17 `> paperless-desktop@0.0.9 start /home/thomas/paperless-desktop

gulp && electron .

[13:50:09] Using gulpfile ~/paperless-desktop/gulpfile.js [13:50:09] Starting 'browserify-vendor'... [13:50:19] Finished 'browserify-vendor' after 10 s [13:50:19] Starting 'browserify'... [13:50:23] Finished 'browserify' after 3.94 s [13:50:23] Starting 'default'... [13:50:23] Finished 'default' after 60 μs ` Its installed on solus via npm install.

thomasbrueggemann commented 6 years ago

Hey, I can't garantuee this to run on anything else but macOS at the moment. But what you could do is open paperless-desktop, open the settings view (the little gear-icon) and there open the developer tools window. Then, try to open a document and see if there is an error logged in the devtools console window.

Feel free to post the error here!

rototom commented 6 years ago

No error shown....

chris-aeviator commented 6 years ago

I'm experiencing the same issue on osx. I tried this first with a local installation of paperless (through docker compose) which was a http (local) server. When deploying to my live environment and using https url in paperless desktop ( https goes through nginx reverse proxy to the same http only endpoint but on the live server)

The preview in pl-desktop works just fine, but when opening a document the UI dialog errors out with Could not load document! - please try again

When looking into dev tools the only error shown is TypeError: Cannot read property 'replace' of undefined(…) which happens after closing the beforementioned dialog

chris-aeviator commented 6 years ago

Looks like it does not have anything to do with paperless-desktop itself as my api endpoint to get a single doc does not respond to the auth header send (sends me to login page) - so it's an issue with paperless itself (at least for my issue).

EDIT

after fixing the api endpoint the problem stays - can't open a document

EDIT 2 after clearing cache & localstorage in the electron dev tools I was able to access the document since the redirect was still cached

thomasbrueggemann commented 6 years ago

@chris-aeviator Cool that you dug deeper into the issue. I saw that you already opened an issue in the paperless repository.

@rototom Could this resolve your initial issue as well?

chris-aeviator commented 6 years ago

@thomasbrueggemann yes this solved my initial issue.

Will work on debugging the initial problem on this (#33) issue now since I switched from OSX to arch on my mac and would still like to use paperless desktop.

rototom commented 6 years ago

unfortunatly I have no idea what to do...

thomasbrueggemann commented 6 years ago

@chris-aeviator Could you share the commands you used in the electron dev tools to clear the cache and localstorage? This might help @rototom with his problem as well.

For the future I can imagine adding a "reset" button within the settings page of the app for this very purpose.

chris-aeviator commented 6 years ago

@thomasbrueggemann

Sure – I started the Dev Tools (through the menu as far as I remember) and used the Application Tab to access the localstorage engines of the electron app.

image (Screenshot taken from Chromium not Electron, should be the same)