Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to view documents #55

Open
Elderglass opened this issue Oct 3, 2021 · 14 comments
Open

Unable to view documents #55

Elderglass opened this issue Oct 3, 2021 · 14 comments
Labels
bug Something isn't working

Comments

@Elderglass
Copy link

Describe the bug
Unable to view existing documents
All requested permissions given. No storage permission requested?

To Reproduce
Steps to reproduce the behavior:

  1. Open app
  2. Click on any document
  3. Stuck on 'Downloading document 0%'

Expected behavior
Document should load

Screenshots
image
image

Additional information
Paperless App Version: e.g. 0.0.11
Do you use Paperless NG as a backend: Yes

@Elderglass Elderglass added the bug Something isn't working label Oct 3, 2021
@bauerj
Copy link
Owner

bauerj commented Oct 3, 2021

Hey,

that's odd. I assume it works fine in the browser? Do you use some kind of reverse proxy in front of the paperless server?

@Elderglass
Copy link
Author

You're right it works absolutely fine in the browser on all devices. And no reverse proxy in use, just connecting directly to the ip of the paperless-ng docker instance.

@bauerj
Copy link
Owner

bauerj commented Oct 6, 2021

Okay, this is quite puzzling.

I'm not able to reproduce this so I need some more information from you:

Could you connect your phone to your computer, enable USB debugging, run adb logcat and send me the output?

Otherwise I'll try to come up with an easier way to debug this.

@AdamGalt
Copy link

@bauerj I'm not the OP, but do you still need logcat output?

I'm facing the same issue and can provide you one privately as well if it's helpful.

@bauerj
Copy link
Owner

bauerj commented Oct 28, 2021

Yes, I still have no clue towards the issue. A log should be very helpful!

You can send it to me at bauerj@bauerj.eu.

@AdamGalt
Copy link

Was that log file useful? Happy to test and provide more logs if required. Just let me know.

@bauerj
Copy link
Owner

bauerj commented Nov 11, 2021

Hey,

sorry I didn't respond yet. No, sadly there was nothing in the logs that could help to solve this issue.

Could you please try connecting to this server?

https://paperless-demo.quinncasey.com/
paperless
paperless

@AdamGalt
Copy link

Done and sent! Let me know if you need any more and thank you for looking into this. 👍

@bauerj
Copy link
Owner

bauerj commented Nov 15, 2021

Hi Adam,

I still wasn't able to find the cause to this issue. Could you please provide me with some more information?

  • Do you connect to your Paperless instance through HTTPS?
  • Do you have a reverse proxy or anything in front of Paperless NG?
  • Can you run curl -u 'username:password' https://paperless.example.com/api/documents/1/thumb/ -vvv --http1.0 --output 1.png; file 1.png in a Linux console with your details filled in and send me the output? Do make sure to blank the line starting with "> Authorization" as that contains an encoded form of your credentials.

My suspicion is that there is something wrong with the server configuration as only two people reported about it. But it could also be a sneaky Flutter bug that only happens in a specific environment. Would you be able to test the app on a different Android device or in an emulator to see if that makes any difference?

Thank you for your help in debugging this and sorry again that this is taking so long.

@AdamGalt
Copy link

AdamGalt commented Nov 15, 2021 via email

@bauerj
Copy link
Owner

bauerj commented Nov 15, 2021

Can you confirm that a document with ID 1 exists by visiting http://100.109.54.79:8000/documents/1? If it doesn't, please repeat the command above with an ID of one of your documents instead of the 1.

@AdamGalt
Copy link

AdamGalt commented Nov 15, 2021 via email

@bauerj
Copy link
Owner

bauerj commented Nov 15, 2021

Phew, thanks for letting me know 😄

Still a weird bug but happy to hear you found a solution!

@Elderglass can you check if this solves the issue for you as well?

@thijselblaso
Copy link

Hi, for me this issue still exists! I have this problem only when I use the address of the proxy. Local I have no problems with the app. What do I expose over the proxy? I have location /, /api/, /static/ and /ws/. Do I miss something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants