{"action":"created","issue":{"url":"https://api.github.com/repos/box/box-node-sdk/issues/90","repository_url":"https://api.github.com/repos/box/box-node-sdk","labels_url":"https://api.github.com/repos/box/box-node-sdk/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/box/box-node-sdk/issues/90/comments","events_url":"https://api.github.com/repos/box/box-node-sdk/issues/90/events","html_url":"https://github.com/box/box-node-sdk/issues/90","id":191024054,"number":90,"title":"\"Search for Metadata\" always results in bad request","user":{"login":"mjanathk","id":20407818,"avatar_url":"https://avatars.githubusercontent.com/u/20407818?v=3","gravatar_id":"","url":"https://api.github.com/users/mjanathk","html_url":"https://github.com/mjanathk","followers_url":"https://api.github.com/users/mjanathk/followers","following_url":"https://api.github.com/users/mjanathk/following{/other_user}","gists_url":"https://api.github.com/users/mjanathk/gists{/gist_id}","starred_url":"https://api.github.com/users/mjanathk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjanathk/subscriptions","organizations_url":"https://api.github.com/users/mjanathk/orgs","repos_url":"https://api.github.com/users/mjanathk/repos","events_url":"https://api.github.com/users/mjanathk/events{/privacy}","received_events_url":"https://api.github.com/users/mjanathk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-22T14:37:20Z","updated_at":"2016-11-22T18:05:46Z","closed_at":null,"body":"It looks like there is a bug in the SDK when we \"search for metadata\" as described in the document ( _https://github.com/box/box-node-sdk/blob/144dd852bcf8e6c511b0141c08b635902dabd8db/docs/search.md)._ Pls see below\r\n**Code:**\r\n_userAPIClient.search.query( \r\n'', \r\n{ \r\n'file_extensions': 'ppt,pptx', \r\n'mdfilters': [ \r\n{ \r\n'templateKey': 'TopSecret', \r\n'scope': 'enterprise', \r\n'filters': {} \r\n} \r\n] \r\n}, \r\nfunction(err,response){ \r\nconsole.log(err,response); \r\nres.json(err); \r\n});_\r\n**Error:**\r\n_{ type: 'error', \r\nstatus: 400, \r\ncode: 'bad_request', \r\nhelp_url: 'http://developers.box.com/docs/#errors', \r\nmessage: 'Bad Request', \r\nrequest_id: '856959801583385d32e9c2' } } }_\r\n\r\n**PS: The basic SDK search works fine (code below).**\r\n_userAPIClient.search.query('teamLogo1.png',null,function(err,response){ \r\nres.json(response);\r\n});_"},"comment":{"url":"https://api.github.com/repos/box/box-node-sdk/issues/comments/262317888","html_url":"https://github.com/box/box-node-sdk/issues/90#issuecomment-262317888","issue_url":"https://api.github.com/repos/box/box-node-sdk/issues/90","id":262317888,"user":{"login":"mjanathk","id":20407818,"avatar_url":"https://avatars.githubusercontent.com/u/20407818?v=3","gravatar_id":"","url":"https://api.github.com/users/mjanathk","html_url":"https://github.com/mjanathk","followers_url":"https://api.github.com/users/mjanathk/followers","following_url":"https://api.github.com/users/mjanathk/following{/other_user}","gists_url":"https://api.github.com/users/mjanathk/gists{/gist_id}","starred_url":"https://api.github.com/users/mjanathk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjanathk/subscriptions","organizations_url":"https://api.github.com/users/mjanathk/orgs","repos_url":"https://api.github.com/users/mjanathk/repos","events_url":"https://api.github.com/users/mjanathk/events{/privacy}","received_events_url":"https://api.github.com/users/mjanathk/received_events","type":"User","site_admin":false},"created_at":"2016-11-22T18:05:46Z","updated_at":"2016-11-22T18:05:46Z","body":"Thanks Matt"}}
{"actor":{"display_login":"mjanathk"}}