You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I just installed the latest version to migrate from Pocket.
I'm importing thousands of links but very early I get an 500 when trying to download a "secured PDF".
I would appreciate even a temporary workaround to get at least all the remaining articles imported...
From var/logs/prod.log
[2016-08-19 22:37:10] graby.DEBUG: Graby is ready to fetch [] []
[2016-08-19 22:37:10] graby.DEBUG: Fetching url: {url} {"url":"http://www.iarc.fr/en/media-centre/pr/2015/pdfs/pr231_E.pdf"} []
[2016-08-19 22:37:10] graby.DEBUG: Trying using method "{method}" on url "{url}" {"method":"head","url":"http://www.iarc.fr/en/media-centre/pr/2015/pdfs/pr231_E.pdf"} []
[2016-08-19 22:37:10] graby.DEBUG: Data fetched: {data} {"data":{"effective_url":"http://www.iarc.fr/en/media-centre/pr/2015/pdfs/pr231_E.pdf","body":"(only length for debug): 0","headers":"application/pdf","status":200}} []
[2016-08-19 22:37:11] request.CRITICAL: Uncaught PHP Exception Exception: "Secured pdf file are currently not supported." at /home/et/repositories/wallabag2/vendor/smalot/pdfparser/src/Smalot/PdfParser/Parser.php line 94 {"exception":"[object] (Exception(code: 0): Secured pdf file are currently not supported. at /home/et/repositories/wallabag2/vendor/smalot/pdfparser/src/Smalot/PdfParser/Parser.php:94)"} []
Environment
wallabag version: git tag 2.0.6 installed via git clone
php version: PHP 5.5.9-1ubuntu4.19
OS: Ubuntu 14.04.5 LTS (trusty)
type of hosting (shared or dedicated): dedicated
which storage system you choose at install (SQLite, MySQL/MariaDB or PostgreSQL): MySQL
NB: The error in the log file will look slightly different compared to importing from Pocket.
[2016-08-19 22:51:23] app.ERROR: Error while saving an entry {"exception":"[object] (Exception(code: 0): Secured pdf file are currently not supported. at /home/et/repositories/wallabag2/vendor/smalot/pdfparser/src/Smalot/PdfParser/Parser.php:94)","entry":"[object] (Wallabag\\CoreBundle\\Entity\\Entry: {})"} []
The text was updated successfully, but these errors were encountered:
Thanks for your super swift resolution! Very impressive.
Let me also send you some praise for your commitment and very good work. I also like the fact that you migrated to SF2.
Regarding the issue: I agree with @j0k3r that this should be fixed on wallabag side in order to not break the import.
And as far as I can tell, the issue was "worked around" by @tcitworld. Thanks again!
I'm not sure if I understood it right, but in case of a PDF, wouldn't it be enough to keep the link in the entry? This way it can be downloaded (if still available of course).
What do you think?
Yeah, I know this sounds more like an improvement, and the actual problem of breaking the import was solved here 👍
Well, in fact your little improvement can be applied to every link, not only PDF.
This can be an option or by default, I don't know: instead of skipping an entry if getting content fail, just save the link.
Issue details
Hi, I just installed the latest version to migrate from Pocket.
I'm importing thousands of links but very early I get an 500 when trying to download a "secured PDF".
I would appreciate even a temporary workaround to get at least all the remaining articles imported...
From
var/logs/prod.log
Environment
Steps to reproduce/test case
Add the URL with the PDF that causes the issue: http://www.iarc.fr/en/media-centre/pr/2015/pdfs/pr231_E.pdf
NB: The error in the log file will look slightly different compared to importing from Pocket.
The text was updated successfully, but these errors were encountered: