{"action":"opened","issue":{"url":"https://api.github.com/repos/mysociety/popit/issues/774","labels_url":"https://api.github.com/repos/mysociety/popit/issues/774/labels{/name}","comments_url":"https://api.github.com/repos/mysociety/popit/issues/774/comments","events_url":"https://api.github.com/repos/mysociety/popit/issues/774/events","html_url":"https://github.com/mysociety/popit/issues/774","id":59828322,"number":774,"title":"Error when rendering an organization with lots of memberships","user":{"login":"chrismytton","id":22996,"avatar_url":"https://avatars.githubusercontent.com/u/22996?v=3","gravatar_id":"","url":"https://api.github.com/users/chrismytton","html_url":"https://github.com/chrismytton","followers_url":"https://api.github.com/users/chrismytton/followers","following_url":"https://api.github.com/users/chrismytton/following{/other_user}","gists_url":"https://api.github.com/users/chrismytton/gists{/gist_id}","starred_url":"https://api.github.com/users/chrismytton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrismytton/subscriptions","organizations_url":"https://api.github.com/users/chrismytton/orgs","repos_url":"https://api.github.com/users/chrismytton/repos","events_url":"https://api.github.com/users/chrismytton/events{/privacy}","received_events_url":"https://api.github.com/users/chrismytton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-04T17:06:45Z","updated_at":"2015-03-04T17:06:45Z","closed_at":null,"body":"http://kenyan-politicians.popit.staging.mysociety.org/organizations/core_organisation:513 is currently returning the following error:\r\n\r\n```\r\n500 Error: Error rendering 'organization/view.html': RangeError: Maximum call stack size exceeded\r\n   at Template.render (/data/vhost/popit.staging.mysociety.org/popit/node_modules/underscore-template-additions/index.js:106:11)\r\n   at /data/vhost/popit.staging.mysociety.org/popit/node_modules/underscore-template-additions/index.js:174:26\r\n   at Template.loadFromDir (/data/vhost/popit.staging.mysociety.org/popit/node_modules/underscore-template-additions/index.js:27:12)\r\n   at View.engine (/data/vhost/popit.staging.mysociety.org/popit/node_modules/underscore-template-additions/index.js:168:10)\r\n   at View.render (/data/vhost/popit.staging.mysociety.org/popit/node_modules/express/lib/view.js:76:8)\r\n   at Function.app.render (/data/vhost/popit.staging.mysociety.org/popit/node_modules/express/lib/application.js:525:10)\r\n   at ServerResponse.res.render (/data/vhost/popit.staging.mysociety.org/popit/node_modules/express/lib/response.js:833:7)\r\n   at /data/vhost/popit.staging.mysociety.org/popit/lib/apps/organization.js:49:9\r\n   at callbacks (/data/vhost/popit.staging.mysociety.org/popit/node_modules/express/lib/router/index.js:164:37)\r\n   at param (/data/vhost/popit.staging.mysociety.org/popit/node_modules/express/lib/router/index.js:138:11)\r\n```\r\n\r\nLooks like it's something to do with recursion in the templates while trying to render all the memberships."}}