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
Occasionally, I'll receive the following exception either due to "Unknown Error" or "TooManyRequests". This issue is to document, I intend to follow up with a PR to catch these exceptions to handle a bit more gracefully.
Traceback (most recent call last):
File "/Users/redacted/.local/bin/savepagenow", line 8, in <module>
sys.exit(cli())
^^^^^
File "/Users/redacted/.local/pipx/venvs/savepagenow/lib/python3.12/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/redacted/.local/pipx/venvs/savepagenow/lib/python3.12/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/Users/redacted/.local/pipx/venvs/savepagenow/lib/python3.12/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/redacted/.local/pipx/venvs/savepagenow/lib/python3.12/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/redacted/.local/pipx/venvs/savepagenow/lib/python3.12/site-packages/savepagenow/api.py", line 197, in cli
archive_url = capture(url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^
File "/Users/redacted/.local/pipx/venvs/savepagenow/lib/python3.12/site-packages/savepagenow/api.py", line 95, in capture
raise UnknownError(response.headers)
savepagenow.exceptions.UnknownError: {'Server': 'nginx', 'Date': 'Wed, 01 Jan 2025 22:36:37 GMT', 'Content-Type': 'text/html', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'cache-control': 'no-cache', 'x-app-server': 'wwwb-app55', 'x-ts': '520', 'x-tr': '84206', 'server-timing': 'TR;dur=0,Tw;dur=0,Tc;dur=1', 'X-location': 'save-sync', 'X-RL': '1', 'X-NA': '0', 'X-Page-Cache': 'MISS', 'X-NID': '-', 'Referrer-Policy': 'no-referrer-when-downgrade', 'Permissions-Policy': 'interest-cohort=()'}
The text was updated successfully, but these errors were encountered:
Occasionally, I'll receive the following exception either due to "Unknown Error" or "TooManyRequests". This issue is to document, I intend to follow up with a PR to catch these exceptions to handle a bit more gracefully.
The text was updated successfully, but these errors were encountered: