I run a post request via javascript SDK(node server running express 4.x and Parse SDK for JavaScript)
this is how i initialize parse
Parse.initialize(configObject.name, configObject.apiK);
Parse.serverURL = configObject.apiUrl;
The request itself looks like this.
async function parseCall(promotions){
var postvar = {promotion:promotions,countrycode:"DE"};
try {
const postParse = await Parse.Cloud.run("getAvailableWebPurchases",postvar);
} catch(error) {
console.error('Request failed with response code ' +error);
}
}
When the request runs I get Request failed with response code ParseError: 141 [object Object]
I got to the point that I can’t figure out what am I doing wrong. (API key and server URL are correct and the function name is also spot ton) I will be thankful for any help or suggestion.