I have Parse-Server hosted locally and I have the Parse-Server-Example test working. I'm able to call the example cloud code function using the test code (/test) that Parse-Server-Example uses. When I replace the main.js file with my legacy cloud code (from Parse.com hosted server), I can't seem to figure out how to call it. The Parse-Server-Example /test call to my replaced cloud code works just fine. I just can't seem to call the cloud code from my own javascript. Here's my client side javascript code:
function helloMyParse(){
Parse.initialize("myAppId", "myMastKey");
Parse.serverURL = 'http://192.168.1.239:1337/parse';
Parse.Cloud.run('hello',
{
XXXXXXX
}, {
success: function(results) {
Any ideas greatly appreciated!
Above code throws the following error:
Failed to load resource: the server responded with a status of 404 (Not Found) http://192.168.1.239:1337/parse/1/functions/hello