Error loading View all report

Hello,

the following error page is displayed always when users click on Report tab---->click on view all

Looking into the logs: the following error is generated

AttributeError: 'NoneType' object has no attribute 'is_web_user'
2022-05-24 13:01:00,792 ERROR [django.request] Internal Server Error: /hq/notifications/service/
Traceback (most recent call last):
File "/home/cchq/www/echis/releases/2022-05-23_07.53/python_env-3.9/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/home/cchq/www/echis/releases/2022-05-23_07.53/python_env-3.9/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/cchq/www/echis/releases/2022-05-23_07.53/python_env-3.9/lib/python3.9/site-packages/sentry_sdk/integrations/django/views.py", line 67, in sentry_wrapped_callback
return callback(request, *args, **kwargs)
File "/home/cchq/www/echis/releases/2022-05-23_07.53/python_env-3.9/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view
return self.dispatch(request, *args, **kwargs)
File "/home/cchq/www/echis/releases/2022-05-23_07.53/python_env-3.9/lib/python3.9/site-packages/django/utils/decorators.py", line 43, in _wrapper
return bound_method(*args, **kwargs)
File "/home/cchq/www/echis/releases/2022-05-23_07.53/corehq/apps/domain/decorators.py", line 552, in _inner
return view_func(request, *args, **kwargs)
File "/home/cchq/www/echis/releases/2022-05-23_07.53/corehq/apps/notifications/views.py", line 35, in dispatch
return super(NotificationsServiceRMIView, self).dispatch(request, *args, **kwargs)
File "/home/cchq/www/echis/releases/2022-05-23_07.53/python_env-3.9/lib/python3.9/site-packages/django/views/generic/base.py", line 98, in dispatch
return handler(request, *args, **kwargs)
File "/home/cchq/www/echis/releases/2022-05-23_07.53/corehq/util/jqueryrmi.py", line 60, in post
return self._invoke_remote_method(request, args, kwargs, data)
File "/home/cchq/www/echis/releases/2022-05-23_07.53/corehq/util/jqueryrmi.py", line 74, in _invoke_remote_method
response_data = handler(*data_args)
File "/home/cchq/www/echis/releases/2022-05-23_07.53/corehq/apps/notifications/views.py", line 62, in get_notifications
hide_features=should_hide_feature_notifs(
File "/home/cchq/www/echis/releases/2022-05-23_07.53/corehq/apps/notifications/views.py", line 52, in should_hide_feature_notifs
subscription_type = Subscription.get_active_subscription_by_domain(domain).service_type
AttributeError: 'NoneType' object has no attribute 'service_type'

Hi @demis08,
Thanks for your post.
Please send a support request with the details.

Hi @Cdanso

I have created a support request with details, but no reply

Hello @demis08,

We have sent you a private message related to the issue.

Kind regards,
Livhuwani