okfn / ckanext-lacounts

CKAN extension for the LA Counts project
GNU Affero General Public License v3.0
8 stars 5 forks source link

Server Errors (Error 500) on certain pages #202

Closed joshuazrobins closed 5 years ago

joshuazrobins commented 5 years ago

This is happening on random pages. Previously it was happening for /topic/government-spending and /blog. Now that those pages are up, we are seeing it on other pages like this community profile page.

image

joshuazrobins commented 5 years ago

For example, this specific community profile page has been returning a server error for the past week. https://www.lacounts.org/story/community-profile-caroline-bhalla

amercader commented 5 years ago
File '/srv/app/src/ckan/ckan/templates/page.html', line 19 in block "page"

{%- block content %}

File '/srv/app/src/ckan/ckan/templates/page.html', line 22 in block "content"

{% block main_content %}

File '/srv/app/src/ckanext-lacounts/ckanext/lacounts/templates/page.html', line 36 in block "main_content"

{% block primary %}

File '/srv/app/src/ckanext-lacounts/ckanext/lacounts/templates/showcase/read.html', line 19 in block "primary"

{% block primary_content_inner %}

File '/srv/app/src/ckanext-lacounts/ckanext/lacounts/templates/showcase/read.html', line 84 in block "primary_content_inner"

{% block related_stories %}

File '/srv/app/src/ckanext-lacounts/ckanext/lacounts/templates/showcase/read.html', line 85 in block "related_stories"

{% set stories = h.get_story_related_stories(pkg) %}

File '/srv/app/src/ckanext-lacounts/ckanext/lacounts/helpers.py', line 419 in get_story_related_stories

story = toolkit.get_action('package_show')(context, {'id': id})

File '/srv/app/src/ckan/ckan/logic/__init__.py', line 464 in wrapped

result = _action(context, data_dict, **kw)

File '/srv/app/src/ckan/ckan/logic/action/get.py', line 977 in package_show

raise NotFound

NotFound
joshuazrobins commented 5 years ago

This issue should be re-opened. On the page: https://www.lacounts.org/story/community-profile-caroline-bhalla I am still seeing a Server Error.

roll commented 5 years ago

@joshuazrobins Thanks. Investigating

roll commented 5 years ago

It's fixed - https://www.lacounts.org/story/community-profile-caroline-bhalla