Request error cannot be properly reported
还没有人认领这个 Issue。
评估
调研方向
从 app/Service.py 中的 call 方法、traceback 中显示的 store_status 路径以及 exceptions.py:45 中的日志记录位置开始。在报告的 Python 2.7 设置中尝试重现请求失败,然后验证错误报告能够完成,且不会出现对 thread.lock 进行 pickling 时的 TypeError。
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- Python
- 星标
- 186
- 派生
- 117
- 平均合并
- 11 天 20 小时
- 30 天内合并 PR
- 1
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
geopython/pywps 的其他 Issue
-
ReadTheDocs OAuth App Installation可能重新可做 @tomkralidis 于 70 天前认领,目前没有进行中的 PR。 未关闭documentation
-
Modernizing the packaging of the library可能重新可做 @Zeitsperre 于 283 天前认领,目前没有进行中的 PR。 未关闭documentation enhancement packaging
-
难度 2/5 1-3 小时 新手友好度 45/100
-
难度 3/5 1-2 天 新手友好度 45/100
-
难度 3/5 1-2 天 新手友好度 35/100
相似的 Issue
-
[Bug] @deck.gl/arcgis dist import resolves to unpublished @deck.gl/core source path (9.3.11, 9.4.0)未关闭
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
workflow: a tick's dispatch counts as 'only this step', and no review self-grants a round unattended未关闭workflow
难度 2/5 1-3 小时 新手友好度 85/100
kristofdegrave/homeassistant-smart-charging#1505 ·
维护者通常 1 天内回复
-
metadata submission
难度 2/5 1-3 小时 新手友好度 82/100
-
bug
难度 2/5 1-3 小时 新手友好度 65/100
canonical/content-cache-operator#163 · 1 条评论 ·
维护者通常 1 天内回复
-
[submission]未关闭submission
难度 1/5 1 小时以内 新手友好度 65/100
leanprover/lean-eval-submissions#1852 ·
维护者通常 1 天内回复