aws / aws/aws-xray-sdk-python

NoneType object has no attribute put http meta

Open
#152 11 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
Python
Stars
338
Forks
147
PR merge metrics
No merged PRs in 30d

Description

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'
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.