Request error cannot be properly reported
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 25/100
Línea de trabajo
Comienza con el método call en app/Service.py, la ruta store_status mostrada en el traceback y la ubicación del logging en exceptions.py:45. Intenta reproducir el fallo de la solicitud en la configuración de Python 2.7 indicada y verifica después que la notificación del error se complete sin el TypeError de pickling de thread.lock.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Description
My current pyWPS is unable to start up (obviously I need to fix that...) but the error handling/reporting is seemingly failing.
I inserted an extra LOGGER in this fragment of code from the call method in app/Service.py:
try:
response = None
if wps_request.operation == 'getcapabilities':
response = self.get_capabilities(wps_request, request_u$
response._update_status(WPS_STATUS.SUCCEEDED, u'', 100)
elif wps_request.operation == 'describeprocess':
response = self.describe(wps_request, request_uuid, wps$
response._update_status(WPS_STATUS.SUCCEEDED, u'', 100)
elif wps_request.operation == 'execute':
response = self.execute(
wps_request.identifier,
wps_request,
request_uuid
)
return response
except Exception as e:
LOGGER.exception(e)
and now have the following stack trace:
[2019-03-27 07:36:49,813] ERROR [exceptions.py:45] Exception: code: 500, locator: No applicable error code, please check error log., description:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/pywps-4.0.0-py2.7.egg/pywps/app/Service.py", line 332, in call
store_status(request_uuid, WPS_STATUS.FAILED, u'Request rejected due to exception', 100)
TypeError: can't pickle thread.lock objects
It seems there needs to be an improvement to the way that store_status works?
Environment
- operating system:
- Python version: 2.7
- PyWPS version: 4.0.0
- source/distribution
- git clone
- Debian
- PyPI
- zip/tar.gz
- other (please specify):
- web server
- Apache/mod_wsgi
- CGI
- nGinx
Steps to Reproduce
Unable to provide code.
Additional Information
- Lenguaje dominante
- Python
- Estrellas
- 186
- Forks
- 117
- Merge medio
- 11 d 20 h
- PR fusionados (30 d)
- 1
Preparar el entorno
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de geopython/pywps
-
ReadTheDocs OAuth App InstallationQuizá libre de nuevo @tomkralidis la tomó hace 70 días y no hay ningún pull request abierto. Abiertodocumentation
-
Modernizing the packaging of the libraryQuizá libre de nuevo @Zeitsperre la tomó hace 283 días y no hay ningún pull request abierto. Abiertodocumentation enhancement packaging
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 45/100
-
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
-
ComplexOutput data as reference always generates a file named "input.csv", should be "output".Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
Todos los issues de geopython/pywps
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
spec-kitty/spec-kitty#5319 ·
Los mantenedores suelen responder en 1 día
-
backend::vllm diffusion multimodal
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
openai/openai-agents-python#5229 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día