{"issue":{"pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"state":"open","user":{"avatar_url":"https://secure.gravatar.com/avatar/e26df88d621f60cc5487460580637f11?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"e26df88d621f60cc5487460580637f11","url":"https://api.github.com/users/joehobson","login":"joehobson","id":838671},"milestone":null,"assignee":null,"labels":[],"updated_at":"2011-11-10T22:53:20Z","comments":0,"closed_at":null,"url":"https://api.github.com/repos/LearningRegistry/LearningRegistry/issues/128","body":"When implementing paradata viewing on resource records in Brokers of Expertise, we noticed our logs were filling up with errors whenever a resource was viewed that didn't have any paradata in the system. We fixed it by suppressing 500 errors returned by the node. So for a call to harvest/getrecord that returns one or more records you get the usual HTTP header 200 status code. If no records are returned you get a 500.\r\n\r\nExample: http://lrtest01.learningregistry.org/harvest/getrecord?request_ID=http://www.xyz.com\r\n\r\nYou can use a web-based sniffer to see returned headers: http://web-sniffer.net/\r\n\r\nThen again, i'm not entirely sure what's going on here because when i try to view the status codes with curl it looks like a 200 is returned. ","html_url":"https://github.com/LearningRegistry/LearningRegistry/issues/128","title":"harvest/getrecord returns 500 error code when resource not found","number":128,"id":2203966,"created_at":"2011-11-10T22:53:20Z"},"action":"opened"}