-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cloud code functions not getting called #385
Comments
what's your cloud function looks like? Did you really save a 'SomeClass' object in your cloud function? |
The SomeClass object is saved from a client. The code I posted is my entire main.js. |
did you have in your main.js? |
No, the serverURL is set in index.js, in my ParseServer initialization. Is that wrong? |
Are you sure your parse server instance is receiving that object save and processing it?.. for troubleshooting purposes, it's important to know.. are you using an app Id which is also a parse.com app id? Is the parse app also connected to the same database, etc.. I'd run the server with the environment variable VERBOSE=1 and make sure the save was received. |
No, I am not sure of that, and don`t quite know how to check it. This is the situation:
|
The .NET SDK would make a call with the dotNetKey, which if you haven't configured would cause a problem. Here's an easy test... Change the appId for your ParseServer instance and also in your .Net app. I recommend removing any clientKey/javascriptKey/dotNetKey/restAPIKey options. |
When going through my .NET client, and not just saving objects directly in the MongoLab database, the cloud functions were called as they should. |
I have set up parse-server on Heroku, but I am having trouble with the cloud code. I used the parse-server-example, and replaced the contents of main.js with my own:
And this is my parse-server setup:
When i run
heroku logs
in the terminal i can see the "### TEST" getting printed after start up. But when I save an object of the specified type, nothing is printed in the logs, so it seems that the beforeSave and afterSave isn`t getting called at all.The text was updated successfully, but these errors were encountered: