{"action":"created","issue":{"url":"https://api.github.com/repos/pokitdok/pokitdok-ruby/issues/3","labels_url":"https://api.github.com/repos/pokitdok/pokitdok-ruby/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/pokitdok/pokitdok-ruby/issues/3/comments","events_url":"https://api.github.com/repos/pokitdok/pokitdok-ruby/issues/3/events","html_url":"https://github.com/pokitdok/pokitdok-ruby/issues/3","id":57878975,"number":3,"title":"Issuing an eligibility request with a last name but no first name returns an HTML error page","user":{"login":"shipstar","id":115918,"avatar_url":"https://avatars.githubusercontent.com/u/115918?v=3","gravatar_id":"","url":"https://api.github.com/users/shipstar","html_url":"https://github.com/shipstar","followers_url":"https://api.github.com/users/shipstar/followers","following_url":"https://api.github.com/users/shipstar/following{/other_user}","gists_url":"https://api.github.com/users/shipstar/gists{/gist_id}","starred_url":"https://api.github.com/users/shipstar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shipstar/subscriptions","organizations_url":"https://api.github.com/users/shipstar/orgs","repos_url":"https://api.github.com/users/shipstar/repos","events_url":"https://api.github.com/users/shipstar/events{/privacy}","received_events_url":"https://api.github.com/users/shipstar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-17T03:21:31Z","updated_at":"2015-02-19T01:32:02Z","closed_at":null,"body":"The following request returns an HTML 500 error page instead of a Ruby Error/Exception subclass:\r\n\r\n    pd = PokitDok::PokitDok.new(ENV['POKITDOK_KEY'], ENV['POKITDOK_SECRET'])\r\n\r\n    query = {\r\n      member: {\r\n        last_name: \"Doe\"\r\n      }\r\n    }\r\n\r\n    pd.eligibility(query)\r\n\r\nAdding `first_name` makes it a valid request (at least in dev mode) and omitting `last_name` or `member` entirely returns an `OAuth2::Error` as expected. (Close enough, anyway.)"},"comment":{"url":"https://api.github.com/repos/pokitdok/pokitdok-ruby/issues/comments/74984709","html_url":"https://github.com/pokitdok/pokitdok-ruby/issues/3#issuecomment-74984709","issue_url":"https://api.github.com/repos/pokitdok/pokitdok-ruby/issues/3","id":74984709,"user":{"login":"riney","id":88964,"avatar_url":"https://avatars.githubusercontent.com/u/88964?v=3","gravatar_id":"","url":"https://api.github.com/users/riney","html_url":"https://github.com/riney","followers_url":"https://api.github.com/users/riney/followers","following_url":"https://api.github.com/users/riney/following{/other_user}","gists_url":"https://api.github.com/users/riney/gists{/gist_id}","starred_url":"https://api.github.com/users/riney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riney/subscriptions","organizations_url":"https://api.github.com/users/riney/orgs","repos_url":"https://api.github.com/users/riney/repos","events_url":"https://api.github.com/users/riney/events{/privacy}","received_events_url":"https://api.github.com/users/riney/received_events","type":"User","site_admin":false},"created_at":"2015-02-19T01:32:02Z","updated_at":"2015-02-19T01:32:02Z","body":"Alright, turns out there was a little validation glitch. Fix should go out this week. Of course, in a realistic scenario, you'd need a first name, last name, a member id, and a trading partner id, but it should always return a proper error payload no matter what. Thanks so much for letting me know. "}}