{"action":"opened","issue":{"url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/800","repository_url":"https://api.github.com/repos/ParsePlatform/parse-server","labels_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/800/labels{/name}","comments_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/800/comments","events_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/800/events","html_url":"https://github.com/ParsePlatform/parse-server/issues/800","id":138138057,"number":800,"title":"Parse Cloud Function never successfully executes my queries...","user":{"login":"fraxool","id":16626139,"avatar_url":"https://avatars.githubusercontent.com/u/16626139?v=3","gravatar_id":"","url":"https://api.github.com/users/fraxool","html_url":"https://github.com/fraxool","followers_url":"https://api.github.com/users/fraxool/followers","following_url":"https://api.github.com/users/fraxool/following{/other_user}","gists_url":"https://api.github.com/users/fraxool/gists{/gist_id}","starred_url":"https://api.github.com/users/fraxool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fraxool/subscriptions","organizations_url":"https://api.github.com/users/fraxool/orgs","repos_url":"https://api.github.com/users/fraxool/repos","events_url":"https://api.github.com/users/fraxool/events{/privacy}","received_events_url":"https://api.github.com/users/fraxool/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-03T10:25:09Z","updated_at":"2016-03-03T10:25:09Z","closed_at":null,"body":"I'm trying to execute this cloud code function : \r\n\r\n```\r\nParse.Cloud.define('sendPush', function(request, response) {\r\n\t\r\n\t// request has 2 parameters: params passed by the client and the authorized user\r\n\tvar userTo = request.params.userTo;\r\n\t\r\n\t// extract out the channel to send\r\n\tvar message = request.params.message;\r\n\t\r\n\tParse.Cloud.useMasterKey();\r\n\t\r\n\t// use to custom tweak whatever payload you wish to send\r\n\tvar query = new Parse.Query(Parse.User);\r\n      \tquery.equalTo(\"objectId\", userTo);\r\n\r\n\t  \t// Get the first user which matches the above constraints.\r\n      \tquery.first({\r\n\t\tsuccess: function(quser) {\r\n\t\t\tresponse.success('success');\r\n\t\t},\r\n\t\terror: function(err) {\r\n\t\t\tresponse.error(userTo + \" not found!\");\r\n\t\t}\r\n\t});\r\n});\r\n```\r\n\r\nThe function is executed, the parameters are passed. \r\n`userTo` represents an objectId of an existing user. But everytime I execute this code, it doesn't find the user. I always get the error response code which is \"userTo not found!\".\r\n\r\nI have also tried to execute another query (for example, listing all of the users) and it always ends in the error block...\r\n\r\nAm I missing something here? I'm using Heroku.\r\n\r\nThanks,\r\nAxel"}}