Connectivity to `pdfpiw.uspto.gov` broken?
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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?
- Ngôn ngữ chính
- Python
- Star
- 123
- Fork
- 31
- Merge trung bình
- 3 giờ 7 phút
- Pull request đã merge (30 ngày)
- 71
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ip-tools/patzilla
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
ip-tools/patzilla#139 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
UI: Update BabelĐang mởdependencies help wanted javascript
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Include contributor improvementsĐang mởenhancement help wanted
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
ip-tools/patzilla#188 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
js: Update `elliptic`Đang mởdependencies help wanted javascript
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
ip-tools/patzilla#181 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của ip-tools/patzilla
Issue tương tự
-
community enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
Hochfrequenz/sapgui.mcp#1039 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
didi/helixharness#18 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
API /search : typer la réponseĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
dataforgoodfr/democracy-watch#46 · 1 reaction ·