diff --git a/freezer_api/api/common/middleware.py b/freezer_api/api/common/middleware.py index 2c164aee..0182a8b1 100644 --- a/freezer_api/api/common/middleware.py +++ b/freezer_api/api/common/middleware.py @@ -166,7 +166,7 @@ class JSONTranslator(HookableMiddlewareMixin, object): class BaseContextMiddleware(Middleware): def process_response(self, response): try: - request_id = response.request.context.request_id + request_id = response.req.context.request_id except AttributeError: LOG.warning('Unable to retrieve request id from context') else: