DPMAregister: Access forbidden!

Đang mở
#76 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
api, backend

Hướng nghiên cứu

Start with patzilla/access/dpma/dpmaregister.py, especially access_register around line 743, and inspect the response returned by DPMAregister. The traceback shows an HTTP 403 page where the expected patent document is parsed; determine whether the service access or response handling needs attention. Done when requests can retrieve and decode register data again, with the servicing interval restored.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Problem

Requests to the DPMAregister service are responded with Access forbidden!. The issue probably exists for a while already, because the servicing interval of PatZilla decreased significantly.

  File "/path/to/patzilla/patzilla/navigator/services/dpma.py", line 77, in status_upstream_dpmaregister_handler
    data = dpmaregister.access_register('DE212016000074', 'json')
  File "/path/to/patzilla/patzilla/access/dpma/dpmaregister.py", line 743, in access_register
    document = DpmaRegisterXmlDocument(response.content).decode()
  File "/path/to/patzilla/patzilla/access/dpma/dpmaregister.py", line 555, in decode
    title = self.pointer_title.resolve(self._data)
  File "/path/to/patzilla/jsonpointer.py", line 204, in resolve
    doc = self.walk(doc, part)
  File "/path/to/patzilla/jsonpointer.py", line 279, in walk
    raise JsonPointerException("member '%s' not found in %s" % (part, doc))
jsonpointer.JsonPointerException: member 'dpma-patent-document' not found in OrderedDict([('html', OrderedDict([('@lang', 'en'), ('@{http://www.w3.org/XML/1998/namespace}lang', 'en'), ('head', OrderedDict([('title', OrderedDict([('$', 'Access forbidden!')])), ('link', OrderedDict([('@href', 'mailto:[email protected]'), ('@rev', 'made')])), ('style', OrderedDict([('@type', 'text/css'), ('$', '/*><!--*/ \n    body { color: #000000; background-color: #FFFFFF; }\n    a:link { color: #0000CC; }\n    p, address {margin-left: 3em;}\n    span {font-size: smaller;}\n/**/-->')]))])), ('body', OrderedDict([('h1', OrderedDict([('$', 'Access forbidden!')])), ('p', [OrderedDict([('$', "You don't have permission to access the requested object.\n    It is either read-protected or not readable by the server.")]), OrderedDict([('$', 'If you think this is a server error, please contact\nthe'), ('a', OrderedDict([('@href', 'mailto:[email protected]'), ('$', 'webmaster')]))])]), ('h2', OrderedDict([('$', 'Error 403')])), ('address', OrderedDict([('a', OrderedDict([('@href', '/'), ('$', 'register.dpma.de')])), ('br', OrderedDict()), ('span', OrderedDict([('$', 'Apache')]))]))]))]))])
Ngôn ngữ chính
Python
Star
123
Fork
31
Merge trung bình
2 giờ 50 phút
Pull request đã merge (30 ngày)
66

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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ip-tools/patzilla

Tất cả issue của ip-tools/patzilla

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.