{"action":"closed","issue":{"url":"https://api.github.com/repos/jonahoffline/filepreviews-ruby/issues/18","repository_url":"https://api.github.com/repos/jonahoffline/filepreviews-ruby","labels_url":"https://api.github.com/repos/jonahoffline/filepreviews-ruby/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/jonahoffline/filepreviews-ruby/issues/18/comments","events_url":"https://api.github.com/repos/jonahoffline/filepreviews-ruby/issues/18/events","html_url":"https://github.com/jonahoffline/filepreviews-ruby/issues/18","id":316750208,"number":18,"title":"\"ocr,psd,exif,multimedia,checksum,webpage\" is not a valid choice.'","user":{"login":"itay-grudev","id":2123767,"avatar_url":"https://avatars2.githubusercontent.com/u/2123767?v=4","gravatar_id":"","url":"https://api.github.com/users/itay-grudev","html_url":"https://github.com/itay-grudev","followers_url":"https://api.github.com/users/itay-grudev/followers","following_url":"https://api.github.com/users/itay-grudev/following{/other_user}","gists_url":"https://api.github.com/users/itay-grudev/gists{/gist_id}","starred_url":"https://api.github.com/users/itay-grudev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itay-grudev/subscriptions","organizations_url":"https://api.github.com/users/itay-grudev/orgs","repos_url":"https://api.github.com/users/itay-grudev/repos","events_url":"https://api.github.com/users/itay-grudev/events{/privacy}","received_events_url":"https://api.github.com/users/itay-grudev/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-23T10:21:51Z","updated_at":"2018-05-04T14:15:16Z","closed_at":"2018-05-04T14:15:16Z","author_association":"NONE","body":"I am getting the following error:\r\n\r\n```ruby\r\n{\r\n    message: '\"ocr,psd,exif,multimedia,checksum,webpage\" is not a valid choice.', \r\n    param: 'metadata', \r\n    type: 'invalid_request_error'\r\n}\r\n```\r\n\r\nWhich I suspect is caused from this line, which sends a string of concatenated values instead of an array as the API requires.\r\n\r\nhttps://github.com/jonahoffline/filepreviews-ruby/blob/0923ea4b6c31a252972276dca39232ed2af9fb91/lib/filepreviews/utils.rb#L12-L17\r\n\r\nFrom the API (v2) on the `metadata` parameter:\r\n\r\n> An array of string values of additional metadata to extract. Possible values are \"ocr\", \"psd\", \"exif\", \"ocr\", \"checksum\", \"multimedia\", \"webpage\", and \"sketch\"."}}
{"actor":{"display_login":"jonahoffline"}}