Connectivity to `pdfpiw.uspto.gov` broken?
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start with patzilla/access/uspto/pdf.py at the requests.get call shown in the traceback, then read patzilla/access/generic/pdf.py around pdf_universal_real to understand how failures affect callers and resource use. Check the existing tests for USPTO PDF fetching and error handling. Done means repeated connection timeouts no longer leave the web server unresponsive, with the intended behavior for this unavailable source made clear.
索引モデルが issue の本文から書いたものです。
説明
Problem
The system is experiencing those errors which apparently lead to resource consumption that makes the web server no longer respond to any requests after a few iterations. Why?
2025-08-04 16:27:49,857 INFO [patzilla.access.uspto.pdf ][MainThread] PDF US1748277A: Accessing USPTO document server: http://pdfpiw.uspto.gov/fdd/77/482/017/0.pdf
2025-08-04 16:29:57,153 WARNING [patzilla.access.generic.pdf ][MainThread] PDF US1748277A: Not available from USPTO. HTTPConnectionPool(host='pdfpiw.uspto.gov', port=80): Max retries exceeded with url: /fdd/77/482/017/0.pdf (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7bcc4d0>: Failed to establish a new connection: [Errno 110] Connection timed out',))
2025-08-04 16:29:57,154 ERROR [patzilla.access.generic.pdf ][MainThread] Traceback (most recent call last):
File "/path/to/site-packages/patzilla/access/generic/pdf.py", line 80, in pdf_universal_real
response.pdf = uspto_fetch_pdf(patent)
File "/path/to/site-packages/beaker/cache.py", line 599, in cached
return cache[0].get_value(cache_key, createfunc=go)
File "/path/to/site-packages/beaker/cache.py", line 322, in get
return self._get_value(key, **kw).get_value()
File "/path/to/site-packages/beaker/container.py", line 378, in get_value
v = self.createfunc()
File "/path/to/site-packages/beaker/cache.py", line 597, in go
return func(*args, **kwargs)
File "/path/to/site-packages/patzilla/access/uspto/pdf.py", line 108, in fetch_pdf
response = requests.get(url, headers={'User-Agent': regular_user_agent})
File "/path/to/site-packages/requests/api.py", line 75, in get
return request('get', url, params=params, **kwargs)
File "/path/to/site-packages/requests/api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "/path/to/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/path/to/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/path/to/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
ConnectionError: HTTPConnectionPool(host='pdfpiw.uspto.gov', port=80):
Max retries exceeded with url: /fdd/77/482/017/0.pdf (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7bcc4d0>:
Failed to establish a new connection: [Errno 110] Connection timed out',))
Thoughts
We probably need to turn off this subsystem so it no longer causes any troubles? Or improve error handling at this spot? Or try to switch to another data source URL, if there is any?
- 主要言語
- Python
- スター
- 123
- フォーク
- 31
- 平均マージ
- 2時間 50分
- マージ済み PR(30日)
- 66
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ip-tools/patzilla のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
ip-tools/patzilla#149 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
ip-tools/patzilla#139 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
UI: Update Babelオープンdependencies help wanted javascript
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
dependencies help wanted javascript
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
ip-tools/patzilla#181 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
ip-tools/patzilla の issue をすべて見る
似ている issue
-
URLValidator ignores an explicit empty scheme allowlist対応中かも @IlyaKhalafi が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
tortoise/tortoise-orm#2393 ·
メンテナーはふだん 2 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
frappe/frappe_docker#2046 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
AXI SMU SPEC
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
tenstorrent/tt-oca-harness#3556 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
microsoft/agent-framework#9946 ·
メンテナーはふだん 1 日以内に返信