{"action":"opened","issue":{"url":"https://api.github.com/repos/Yelp/yelp-fusion/issues/432","repository_url":"https://api.github.com/repos/Yelp/yelp-fusion","labels_url":"https://api.github.com/repos/Yelp/yelp-fusion/issues/432/labels{/name}","comments_url":"https://api.github.com/repos/Yelp/yelp-fusion/issues/432/comments","events_url":"https://api.github.com/repos/Yelp/yelp-fusion/issues/432/events","html_url":"https://github.com/Yelp/yelp-fusion/issues/432","id":335197612,"node_id":"MDU6SXNzdWUzMzUxOTc2MTI=","number":432,"title":"Setting PRICE parameter the wrong way returns server code 200 and no data.","user":{"login":"coolboiime","id":9779803,"node_id":"MDQ6VXNlcjk3Nzk4MDM=","avatar_url":"https://avatars2.githubusercontent.com/u/9779803?v=4","gravatar_id":"","url":"https://api.github.com/users/coolboiime","html_url":"https://github.com/coolboiime","followers_url":"https://api.github.com/users/coolboiime/followers","following_url":"https://api.github.com/users/coolboiime/following{/other_user}","gists_url":"https://api.github.com/users/coolboiime/gists{/gist_id}","starred_url":"https://api.github.com/users/coolboiime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coolboiime/subscriptions","organizations_url":"https://api.github.com/users/coolboiime/orgs","repos_url":"https://api.github.com/users/coolboiime/repos","events_url":"https://api.github.com/users/coolboiime/events{/privacy}","received_events_url":"https://api.github.com/users/coolboiime/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-24T17:39:02Z","updated_at":"2018-06-24T17:39:02Z","closed_at":null,"author_association":"NONE","body":"## Overview\r\n- **Client ID:** jyHeS_MVualewtI_Ab4wHg\r\n- **Issue type:** bug\r\n- **Summary:** Setting `price` parameter the wrong way returns server code 200 and no data.\r\n- **Platform:** node-fetch (via React Native)\r\n\r\n## Description\r\nI noticed that when I set the `price` parameter to `1,2,3,4` instead of `1, 2, 3, 4`, the API will return an error with a server code of 200.\r\n\r\n### Endpoint\r\nGraphQL Search API\r\n\r\n### Parameters or Sample Request\r\n```\r\nhttps://api.yelp.com/v3/graphql\r\n```\r\nWith GraphQL post body:\r\n```\r\n{\r\n\tsearch(term: \"Restaurants\", latitude: 40.747479, longitude: -73.98722, open_now: true, price: \"1,2,3,4\", radius: 10000, limit: 35) {\r\n\t\tbusiness {\r\n\t\t\tname\r\n\t\t\tis_closed\r\n\t\t\turl\r\n\t\t\tphone\r\n\t\t\tdisplay_phone\r\n\t\t\treview_count\r\n\t\t\trating\r\n\t\t\tprice\r\n\t\t\tphotos\r\n\t\t\tdistance\r\n\t\t\tattributes\r\n\t\t\tcategories {\r\n\t\t\t\ttitle\r\n\t\t\t\talias\r\n\t\t\t}\r\n\t\t\tlocation {\r\n\t\t\t\taddress1\r\n\t\t\t\taddress2\r\n\t\t\t\taddress3\r\n\t\t\t\tcity\r\n\t\t\t\tstate\r\n\t\t\t\tzip_code\r\n\t\t\t\tcountry\r\n\t\t\t}\r\n\t\t\tcoordinates {\r\n\t\t\t\tlatitude\r\n\t\t\t\tlongitude\r\n\t\t\t}\r\n\t\t\thours {\r\n\t\t\t\tis_open_now\r\n\t\t\t\topen {\r\n\t\t\t\t\tday\r\n\t\t\t\t\tstart\r\n\t\t\t\t\tend\r\n\t\t\t\t\tis_overnight\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treviews {\r\n\t\t\t\ttext\r\n\t\t\t\trating\r\n\t\t\t\tuser {\r\n\t\t\t\t\timage_url\r\n\t\t\t\t\tname\r\n\t\t\t\t}\r\n\t\t\t\ttime_created\r\n\t\t\t\turl\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n```\r\n\r\n### Response\r\n<img width=\"1173\" alt=\"screen shot 2018-06-24 at 1 27 23 pm\" src=\"https://user-images.githubusercontent.com/9779803/41821718-8eb79a56-77b2-11e8-9345-b8ce002266c0.png\">\r\n\r\n## Extra information\r\n1. Setting the price parameter a different way should not throw this kind of error.\r\n2. Throwing this kind of error should return a server code 500, not 200.\r\n3. The errors are not parsable using `JSON.stringify()` because they're not really JSON due to the string characters being `'` instead of `\"`."}}
{"actor":{"display_login":"coolboiime"}}