{"action":"opened","issue":{"url":"https://api.github.com/repos/octokit/octokit.rb/issues/714","labels_url":"https://api.github.com/repos/octokit/octokit.rb/issues/714/labels{/name}","comments_url":"https://api.github.com/repos/octokit/octokit.rb/issues/714/comments","events_url":"https://api.github.com/repos/octokit/octokit.rb/issues/714/events","html_url":"https://github.com/octokit/octokit.rb/issues/714","id":130194062,"number":714,"title":"Validation failed when using search_issues","user":{"login":"zsyed91","id":7675276,"avatar_url":"https://avatars.githubusercontent.com/u/7675276?v=3","gravatar_id":"","url":"https://api.github.com/users/zsyed91","html_url":"https://github.com/zsyed91","followers_url":"https://api.github.com/users/zsyed91/followers","following_url":"https://api.github.com/users/zsyed91/following{/other_user}","gists_url":"https://api.github.com/users/zsyed91/gists{/gist_id}","starred_url":"https://api.github.com/users/zsyed91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zsyed91/subscriptions","organizations_url":"https://api.github.com/users/zsyed91/orgs","repos_url":"https://api.github.com/users/zsyed91/repos","events_url":"https://api.github.com/users/zsyed91/events{/privacy}","received_events_url":"https://api.github.com/users/zsyed91/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-31T21:52:32Z","updated_at":"2016-01-31T21:52:32Z","closed_at":null,"body":"I am trying to get a list of all pull requests opened by me after a certain date. However, if I send any additional parameter aside from `author:zsyed91` I am getting a `422 - Validation Failed`.\r\n\r\nThis is what I am doing:\r\n```ruby\r\n@octokit.search_issues('author:zsyed91')\r\n```\r\n\r\nAnd that returns every issue and pull request I have ever opened.\r\n\r\nWhen I do the following I get the error:\r\n```ruby\r\n@octokit.search_issues('author:zsyed91+type:pr')\r\n```\r\n\r\n```\r\nOctokit::UnprocessableEntity: GET https://api.github.com/search/issues?q=author%3Azsyed91%2Btype%3Apr: 422 - Validation Failed\r\nError summary:\r\n  message: The listed users cannot be searched either because the users do not exist or you do not have permission to view the users.\r\n  resource: Search\r\n  field: q\r\n  code: invalid // See: https://developer.github.com/v3/search/\r\nfrom /Users/zsyed91/.rvm/gems/ruby-2.2.2/gems/octokit-4.2.0/lib/octokit/response/raise_error.rb:16:in `on_complete'\r\n```\r\n\r\nWrapping the params in quotes returns the following:\r\n```ruby\r\n@octokit.search_issues('author:\"zsyed91\"+type:\"pr\"')\r\n```\r\n```ruby\r\n{:total_count=>0, :incomplete_results=>false, :items=>[]}\r\n```\r\n\r\n\r\nHowever, I try hitting the api directly through\r\n```\r\ncurl https://api.github.com/search/issues?q=author:\"zsyed91\"+type:\"pr\"\r\n```\r\n\r\nI get the correct response.\r\n"}}