{"action":"closed","issue":{"url":"https://api.github.com/repos/wkentdag/sup/issues/3","labels_url":"https://api.github.com/repos/wkentdag/sup/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/wkentdag/sup/issues/3/comments","events_url":"https://api.github.com/repos/wkentdag/sup/issues/3/events","html_url":"https://github.com/wkentdag/sup/issues/3","id":65119431,"number":3,"title":"querying one status or user by id returns error","user":{"login":"wkentdag","id":3254957,"avatar_url":"https://avatars.githubusercontent.com/u/3254957?v=3","gravatar_id":"","url":"https://api.github.com/users/wkentdag","html_url":"https://github.com/wkentdag","followers_url":"https://api.github.com/users/wkentdag/followers","following_url":"https://api.github.com/users/wkentdag/following{/other_user}","gists_url":"https://api.github.com/users/wkentdag/gists{/gist_id}","starred_url":"https://api.github.com/users/wkentdag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wkentdag/subscriptions","organizations_url":"https://api.github.com/users/wkentdag/orgs","repos_url":"https://api.github.com/users/wkentdag/repos","events_url":"https://api.github.com/users/wkentdag/events{/privacy}","received_events_url":"https://api.github.com/users/wkentdag/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"wkentdag","id":3254957,"avatar_url":"https://avatars.githubusercontent.com/u/3254957?v=3","gravatar_id":"","url":"https://api.github.com/users/wkentdag","html_url":"https://github.com/wkentdag","followers_url":"https://api.github.com/users/wkentdag/followers","following_url":"https://api.github.com/users/wkentdag/following{/other_user}","gists_url":"https://api.github.com/users/wkentdag/gists{/gist_id}","starred_url":"https://api.github.com/users/wkentdag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wkentdag/subscriptions","organizations_url":"https://api.github.com/users/wkentdag/orgs","repos_url":"https://api.github.com/users/wkentdag/repos","events_url":"https://api.github.com/users/wkentdag/events{/privacy}","received_events_url":"https://api.github.com/users/wkentdag/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-03-30T02:17:42Z","updated_at":"2015-04-05T23:06:15Z","closed_at":"2015-04-05T23:06:15Z","body":"GET-ting `http://localhost:3000/users/7869` returns the following:\r\n```\r\n{\r\nmessage: \"Object 7869 has no method 'query'\",\r\nerror: { }\r\n}\r\n```\r\n\r\nThe error shows up without a status code in the console, but calling a console.log(err) in the main app.js file reveals that it's actually firing a 404 error for user not found...so there are a few separate problems\r\n\r\n* postgres appears to be generating an error that isn't getting properly parsed by the api\r\n* not sure why postgres is generating that error in the first place...\r\n\r\nsimilar issue is going on with statuses. GET-ting `http://localhost:3000/status/2679` (2679 ==  a user id) returns the following error:\r\n\r\n```\r\n{\r\n  error: {\r\n    name: \"error\",\r\n    length: 110,\r\n    severity: \"ERROR\",\r\n    code: \"42703\",\r\n    position: \"68\",\r\n    file: \"parse_relation.c\",\r\n    line: \"2639\",\r\n    routine: \"errorMissingColumn\"\r\n  }\r\n}\r\n```\r\n\r\nalthough the errror does display properly as a 500 on the console so there's 1 less issue with this route\r\n\r\n"}}