DPMAregister: Access forbidden!

Abierto
#76 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python
Área
api, backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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')]))]))]))]))])
Lenguaje dominante
Python
Estrellas
123
Forks
31
Merge medio
3 h 7 min
PR fusionados (30 d)
71

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ip-tools/patzilla

Todos los issues de ip-tools/patzilla

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.