{"action":"created","issue":{"url":"https://api.github.com/repos/CodeForPhilly/stately/issues/26","repository_url":"https://api.github.com/repos/CodeForPhilly/stately","labels_url":"https://api.github.com/repos/CodeForPhilly/stately/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/CodeForPhilly/stately/issues/26/comments","events_url":"https://api.github.com/repos/CodeForPhilly/stately/issues/26/events","html_url":"https://github.com/CodeForPhilly/stately/issues/26","id":180605424,"number":26,"title":"GET /actor fails if no session available","user":{"login":"timwis","id":761444,"avatar_url":"https://avatars.githubusercontent.com/u/761444?v=3","gravatar_id":"","url":"https://api.github.com/users/timwis","html_url":"https://github.com/timwis","followers_url":"https://api.github.com/users/timwis/followers","following_url":"https://api.github.com/users/timwis/following{/other_user}","gists_url":"https://api.github.com/users/timwis/gists{/gist_id}","starred_url":"https://api.github.com/users/timwis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timwis/subscriptions","organizations_url":"https://api.github.com/users/timwis/orgs","repos_url":"https://api.github.com/users/timwis/repos","events_url":"https://api.github.com/users/timwis/events{/privacy}","received_events_url":"https://api.github.com/users/timwis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CodeForPhilly/stately/labels/bug","name":"bug","color":"ee0701"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/CodeForPhilly/stately/milestones/1","html_url":"https://github.com/CodeForPhilly/stately/milestones/MVP","labels_url":"https://api.github.com/repos/CodeForPhilly/stately/milestones/1/labels","id":2043706,"number":1,"title":"MVP","description":"","creator":{"login":"timwis","id":761444,"avatar_url":"https://avatars.githubusercontent.com/u/761444?v=3","gravatar_id":"","url":"https://api.github.com/users/timwis","html_url":"https://github.com/timwis","followers_url":"https://api.github.com/users/timwis/followers","following_url":"https://api.github.com/users/timwis/following{/other_user}","gists_url":"https://api.github.com/users/timwis/gists{/gist_id}","starred_url":"https://api.github.com/users/timwis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timwis/subscriptions","organizations_url":"https://api.github.com/users/timwis/orgs","repos_url":"https://api.github.com/users/timwis/repos","events_url":"https://api.github.com/users/timwis/events{/privacy}","received_events_url":"https://api.github.com/users/timwis/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":7,"state":"open","created_at":"2016-10-03T10:47:38Z","updated_at":"2016-10-19T12:00:29Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-10-03T10:14:35Z","updated_at":"2016-10-19T12:00:29Z","closed_at":null,"body":"It tries to serialize `None` without `safe=False`, which throws an error"},"comment":{"url":"https://api.github.com/repos/CodeForPhilly/stately/issues/comments/254792086","html_url":"https://github.com/CodeForPhilly/stately/issues/26#issuecomment-254792086","issue_url":"https://api.github.com/repos/CodeForPhilly/stately/issues/26","id":254792086,"user":{"login":"timwis","id":761444,"avatar_url":"https://avatars.githubusercontent.com/u/761444?v=3","gravatar_id":"","url":"https://api.github.com/users/timwis","html_url":"https://github.com/timwis","followers_url":"https://api.github.com/users/timwis/followers","following_url":"https://api.github.com/users/timwis/following{/other_user}","gists_url":"https://api.github.com/users/timwis/gists{/gist_id}","starred_url":"https://api.github.com/users/timwis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timwis/subscriptions","organizations_url":"https://api.github.com/users/timwis/orgs","repos_url":"https://api.github.com/users/timwis/repos","events_url":"https://api.github.com/users/timwis/events{/privacy}","received_events_url":"https://api.github.com/users/timwis/received_events","type":"User","site_admin":false},"created_at":"2016-10-19T12:00:26Z","updated_at":"2016-10-19T12:00:26Z","body":"Perhaps we should rename this issue -- here's a scenario I've just encountered while implementing #32:\r\n\r\n1. Initiator submits a request\r\n2. Approver gets an email, clicks the link\r\n3. UI renders the case with available actions, and queries `/api/actor/` to get the currently logged in user.\r\n\r\n`/api/actor/` throws this 500 because you don't have a session already. This sounds like a race condition, because if the case request finishes first it probably works. Eeek."}}
{"actor":{"display_login":"timwis"}}