Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 12-06-2019, 12:09 AM   #1
ThomasPynchon
Junior Member
ThomasPynchon began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2019
Device: Kobo Glo
Pocket: "Failed to download article.... TypeError: expected string or buffer"

Greetings! I am trying to use the recipe for Pocket for the first time, and am having difficulties.

The symptoms are that the download job completes, but there are no articles in book. I have double-checked my Pocket credentials.

The job log indicates that:
InputFormatPlugin: Recipe Input running
Downloading recipe urn: custom:1000
Synthesizing mastheadImage
Failed to download article: Slavoj Zizek-Bibliography/The Thing from Inner Space/Lacan Dot Com from https://getpocket.com/a/read/8290969
Traceback (most recent call last):
File "/usr/lib64/calibre/calibre/utils/threadpool.py", line 101, in run
(request, request.callable(*request.args, **request.kwds))
File "/usr/lib64/calibre/calibre/web/feeds/news.py", line 1150, in fetch_obfuscated_article
path = os.path.abspath(self.get_obfuscated_article(url))
File "<string>", line 155, in get_obfuscated_article
File "<string>", line 140, in get_textview
File "/usr/lib64/python2.7/re.py", line 146, in search
return _compile(pattern, flags).search(string)
TypeError: expected string or buffer

It looks like whatever is being returned is malformed? Also interesting that it includes the article name; this indicates that the correct credentials were passed to Pocket. I have experienced similar issues with Pocket+ recipe, and can post those logs as well, if they are useful.

Can anyone offer any insight, or would any fellow Pocket users try to replicate this issue on their machines?

Thank you!
Attached Files
File Type: txt PocketRecipeFailure_JobLog.txt (5.5 KB, 15 views)
File Type: txt PocketRecipeFailure_DebugLog.txt (7.0 KB, 12 views)
ThomasPynchon is offline   Reply With Quote
Old 12-06-2019, 04:44 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 36,091
Karma: 15014853
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That error indicates the markup on the pocket pages has changed, the recipe will need to be adapted accordingly.
kovidgoyal is offline   Reply With Quote
Advert
Old 12-07-2019, 03:33 AM   #3
ThomasPynchon
Junior Member
ThomasPynchon began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2019
Device: Kobo Glo
Thanks for the confirmation!
ThomasPynchon is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Viewer] TypeError: expected string or buffer thiago.eec Calibre 2 11-01-2019 05:20 AM
Server issue-download error msg "Failed-Forbidden" BadAngel Server 6 06-27-2019 09:50 AM
Bugs "Sanity Check epub" and "Failed Release date" on V 0.91 qkiazd Sigil 5 12-03-2015 05:01 AM
Calibre Companion App Returning "failed to download" error jgplane Calibre Companion 2 11-02-2013 04:12 AM
Calibre: TypeError:expected string or buffer Jonimeesermann Calibre 4 10-02-2010 12:40 PM


All times are GMT -4. The time now is 11:01 AM.


MobileRead.com is a privately owned, operated and funded community.