NoneType object has no attribute put http meta
- 主要言語
- Python
- スター
- 339
- フォーク
- 147
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Using sdk version 2.4.2
```
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 187, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 227, in process_exception_by_middleware
response = middleware_method(request, exception)
File "/usr/local/lib/python2.7/dist-packages/aws_xray_sdk/ext/django/middleware.py", line 102, in process_exception
segment.put_http_meta(http.STATUS, 500)
AttributeError: 'NoneType' object has no attribute 'put_http_meta'
```
コントリビューションガイド
調査の方向性
aws_xray_sdk/ext/django/middleware.py の process_exception から始め、特に traceback に示されている segment.put_http_meta 呼び出しに注目し、報告された SDK バージョンで失敗を再現してください。例外処理中に segment が None になる理由を追跡してください。元の例外を処理する際に、middleware がこの二次的な AttributeError を発生させなくなれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- django, python
- 領域
- backend, observability-sre
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100