-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
REST API: cache secondary mf2 html fetches as well as primary
to handle errors like this: ``` Traceback (most recent call last): ... File "app.py", line 150, in get mf2, fetch_mf2_func=lambda url: mf2py.parse(url=url)) File "microformats2.py", line 728, in find_author author = mf2util.find_author(parsed, 'http://123', **kwargs) File ".../mf2util.py", line 300, in find_author parsed = fetch_mf2_func(author_page) File "app.py", line 150, in <lambda> mf2, fetch_mf2_func=lambda url: mf2py.parse(url=url)) ... File ".../requests/packages/urllib3/contrib/appengine.py", line 109, in urlopen raise TimeoutError(self, e) TimeoutError: (<requests.packages.urllib3.contrib.appengine.AppEngineManager object at 0xfb387410>, DeadlineExceededError('Deadline exceeded while waiting for HTTP response from URL: https://aaronparecki.com/',)) ```
- Loading branch information
Showing
2 changed files
with
33 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters