It's an issue with django_debug_toolber. Ignore me :)

On Wednesday, January 30, 2019 at 9:05:18 AM UTC-6, Joshua Cannon wrote:
>
> OK, *seemingly* the LocalSiteMiddleware isn't executing, which would 
> explain "_local_site_name" missing.
>
> On Tuesday, January 29, 2019 at 5:07:24 PM UTC-6, Joshua Cannon wrote:
>>
>> Howdy folks!
>>
>> I'm seeing the following traceback in the log after enabling the limiting 
>> of large diffs and then attempting to render an astronomically large diff.
>>
>> [Tue Jan 29 23:00:03.687784 2019] [wsgi:error] [pid 21336] [client 
>> 130.164.38.118:61206] Traceback (most recent call last):, referer: 
>> https://review-board.mysite.com/r/266244/diff/1
>> [Tue Jan 29 23:00:03.690938 2019] [wsgi:error] [pid 21336] [client 
>> 130.164.38.118:61206]   File "/usr/lib64/python2.7/logging/__init__.py", 
>> line 851, in emit, referer: 
>> https://review-board.mysite.com/r/266244/diff/1
>> [Tue Jan 29 23:00:03.697252 2019] [wsgi:error] [pid 21336] [client 
>> 130.164.38.118:61206]     msg = self.format(record), referer: 
>> https://review-board.mysite.com/r/266244/diff/1
>> [Tue Jan 29 23:00:03.697397 2019] [wsgi:error] [pid 21336] [client 
>> 130.164.38.118:61206]   File "/usr/lib64/python2.7/logging/__init__.py", 
>> line 724, in format, referer: 
>> https://review-board.mysite.com/r/266244/diff/1
>> [Tue Jan 29 23:00:03.697567 2019] [wsgi:error] [pid 21336] [client 
>> 130.164.38.118:61206]     return fmt.format(record), referer: 
>> https://review-board.mysite.com/r/266244/diff/1
>> [Tue Jan 29 23:00:03.697625 2019] [wsgi:error] [pid 21336] [client 
>> 130.164.38.118:61206]   File 
>> "/opt/apps/reviewboard/venv/lib/python2.7/site-packages/djblets/log/__init__.py",
>>  
>> line 155, in format, referer: 
>> https://review-board.mysite.com/r/266244/diff/1
>> [Tue Jan 29 23:00:03.698207 2019] [wsgi:error] [pid 21336] [client 
>> 130.164.38.118:61206]     getattr(record, 'request', None)), referer: 
>> https://review-board.mysite.com/r/266244/diff/1
>> [Tue Jan 29 23:00:03.698300 2019] [wsgi:error] [pid 21336] [client 
>> 130.164.38.118:61206]   File 
>> "/opt/apps/reviewboard/venv/lib/python2.7/site-packages/djblets/log/__init__.py",
>>  
>> line 161, in format_request, referer: 
>> https://review-board.mysite.com/r/266244/diff/1
>> [Tue Jan 29 23:00:03.698452 2019] [wsgi:error] [pid 21336] [client 
>> 130.164.38.118:61206]     return self.request_fmt % request.__dict__, 
>> referer: https://review-board.mysite.com/r/266244/diff/1
>> [Tue Jan 29 23:00:03.699755 2019] [wsgi:error] [pid 21336] [client 
>> 130.164.38.118:61206] KeyError: u'_local_site_name', referer: 
>> https://review-board.mysite.com/r/266244/diff/1
>> [Tue Jan 29 23:00:03.699874 2019] [wsgi:error] [pid 21336] [client 
>> 130.164.38.118:61206] Logged from file views.py, line 311, referer: 
>> https://review-board.mysite.com/r/266244/diff/1
>>
>>
>> I'm guessing one of the Djblets middleware is responsible for attaching 
>> the local_site_name to the request, but isn't? But I'm sure you guys are 
>> much more equipped to debug this kind of thing :)
>>
>> Reviewboard version is 2.5.18
>>
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to