I am doing the initialization as I should with the correct keys, etc. Even when you do it directly in a function that later uses Parse.Cloud.run, I still get 401 unauthorized access.
Is there a way to check if the initialization works correctly? Does it return any answer? error? if so, how do I start to see the answer? initialization is currently simple:
Parse.initialize("appid", "javascript key"); (with the correct keys of course).
then I call the cloud function:
Parse.Cloud.run('testfunction', aUserObj, { success: function(result) { supersonic.ui.dialog.alert(result); }, error: function(error) { supersonic.ui.dialog.alert(error); } });
and error 401 is unauthorized (which I also see in the javascript console as POST api.parse.com ..... 401 is unauthorized).
btw - using curl and rest api key I can make it work without problems, so this is not an actual permission issue, as far as I can tell.
Thanks.
source share