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

Error while loading/opening URL #5

Closed
smseidl opened this issue Sep 23, 2021 · 4 comments
Closed

Error while loading/opening URL #5

smseidl opened this issue Sep 23, 2021 · 4 comments

Comments

@smseidl
Copy link
Contributor

smseidl commented Sep 23, 2021

I tried to send a Paypal receipt email to Paperless via the Email to PDF and got the below error. I don't understand why it's trying to load this page instead of the actual email... thoughts?

email2pdf    |
email2pdf    | No attachments in: You have authorized a payment to XXXXXXXX Inc.
email2pdf    |
email2pdf    | PDF: You-have-authorized-a-payment-to-XXXXXXXX_.pdf
email2pdf    |
email2pdf    | PDF: You-have-authorized-a-payment-to-XXXXXXXX_.pdf
email2pdf    | Traceback (most recent call last):
email2pdf    |   File "/app/main.py", line 98, in <module>
email2pdf    |     process_mail(imap_url=server_imap,
email2pdf    |   File "/app/main.py", line 72, in process_mail
email2pdf    |     pdfkit.from_string(html, filename)
email2pdf    |   File "/usr/local/lib/python3.9/site-packages/pdfkit/api.py", line 72, in from_string
email2pdf    |     return r.to_pdf(output_path)
email2pdf    |   File "/usr/local/lib/python3.9/site-packages/pdfkit/pdfkit.py", line 156, in to_pdf
email2pdf    |     raise IOError('wkhtmltopdf reported an error:\n' + stderr)
email2pdf    | OSError: wkhtmltopdf reported an error:
email2pdf    | QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
email2pdf    | Loading page (1/2)
Error: Failed to load https://t.paypal.com/ts?xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, with network status code 1 and http status code 0 - Connection refused
Printing pages (2/2)                                                        ] 25%
Done                                                                        ]
email2pdf    | Exit with code 1 due to network error: ConnectionRefusedError
email2pdf    |
@rob-luke
Copy link
Owner

Whats at the address that its trying to load? Is it a tracker or image etc? But I am with you on this, I'm not sure what the problem might be.

I'll make a PayPal purchase and try and reproduce the issue myself.

@smseidl
Copy link
Contributor Author

smseidl commented Sep 27, 2021 via email

@rob-luke
Copy link
Owner

Cross referencing #11 and #12

@rob-luke
Copy link
Owner

rob-luke commented Oct 3, 2021

Closed by #12
Reopen if not fixed for you

@rob-luke rob-luke closed this as completed Oct 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants