Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

paperless-desktop wont open any documents #33

Open
rototom opened this issue Nov 12, 2017 · 9 comments
Open

paperless-desktop wont open any documents #33

rototom opened this issue Nov 12, 2017 · 9 comments
Labels

Comments

@rototom
Copy link

rototom commented Nov 12, 2017

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
Copy link
Owner

thomasbrueggemann commented Nov 12, 2017

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
Copy link
Author

rototom commented Nov 14, 2017

No error shown....

@chris-aeviator
Copy link

chris-aeviator commented Jan 16, 2018

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
Copy link

chris-aeviator commented Jan 17, 2018

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
Copy link
Owner

@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
Copy link

@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
Copy link
Author

rototom commented Mar 27, 2018

unfortunatly I have no idea what to do...

@thomasbrueggemann
Copy link
Owner

@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
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants