Closed smcalilly closed 2 years ago
from the heroku logs on staging:
2022-01-10T17:50:45.251011+00:00 app[web.1]: [2022-01-10 17:50:45 +0000] [20] [DEBUG] GET /cip-planner/ 2022-01-10T17:50:45.265705+00:00 heroku[router]: at=info method=GET path="/cip-planner/" host=ccfp-asset-dashboard-staging.herokuapp.com request_id=72bd1832-9cb7-4605-98ec-725b05d5e34a fwd="<ip>" dyno=web.1 connect=0ms service=15ms status=500 bytes=3906 protocol=https 2022-01-10T17:50:45.265718+00:00 app[web.1]: Internal Server Error: /cip-planner/ 2022-01-10T17:50:45.265719+00:00 app[web.1]: Traceback (most recent call last): 2022-01-10T17:50:45.265730+00:00 app[web.1]: File "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner 2022-01-10T17:50:45.265730+00:00 app[web.1]: response = get_response(request) 2022-01-10T17:50:45.265730+00:00 app[web.1]: File "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py", line 181, in _get_response 2022-01-10T17:50:45.265732+00:00 app[web.1]: response = wrapped_callback(request, *callback_args, **callback_kwargs) 2022-01-10T17:50:45.265732+00:00 app[web.1]: File "/usr/local/lib/python3.8/site-packages/django/views/generic/base.py", line 70, in view 2022-01-10T17:50:45.265733+00:00 app[web.1]: return self.dispatch(request, *args, **kwargs) 2022-01-10T17:50:45.265733+00:00 app[web.1]: File "/usr/local/lib/python3.8/site-packages/django/contrib/auth/mixins.py", line 52, in dispatch 2022-01-10T17:50:45.265733+00:00 app[web.1]: return super().dispatch(request, *args, **kwargs) 2022-01-10T17:50:45.265733+00:00 app[web.1]: File "/usr/local/lib/python3.8/site-packages/django/views/generic/base.py", line 98, in dispatch 2022-01-10T17:50:45.265734+00:00 app[web.1]: return handler(request, *args, **kwargs) 2022-01-10T17:50:45.265734+00:00 app[web.1]: File "/usr/local/lib/python3.8/site-packages/django/views/generic/base.py", line 159, in get 2022-01-10T17:50:45.265734+00:00 app[web.1]: context = self.get_context_data(**kwargs) 2022-01-10T17:50:45.265734+00:00 app[web.1]: File "/app/asset_dashboard/views.py", line 32, in get_context_data 2022-01-10T17:50:45.265735+00:00 app[web.1]: 'phase': phase.name, 2022-01-10T17:50:45.265735+00:00 app[web.1]: File "/app/asset_dashboard/models.py", line 163, in name 2022-01-10T17:50:45.265735+00:00 app[web.1]: return str(self) 2022-01-10T17:50:45.265736+00:00 app[web.1]: TypeError: __str__ returned non-string (type NoneType)
looks like there is an issue with the 'phase': phase.name
'phase': phase.name
from the heroku logs on staging:
looks like there is an issue with the
'phase': phase.name