andrewscofield / parse.com-php-library

248 stars 137 forks source link

Uncaught ParseLibraryException: [141]: parse.com error: Error thrown in /home/content/35/10518935/html/parsePHP3/parse.php on line 183 #118

Open polo2244 opened 10 years ago

polo2244 commented 10 years ago

hello, i downloaded and uploaded all the necessary files to my server.(online not a localServer) I am trying to call a parse Function via PHP.

i keep getting this error:

{"code":141,"error":"Error"}Array ( [method] => POST [requestUrl] => functions/verifyNumb [data] => Array ( [to] => 123456 [code] => aZ02fe2a ) ) Fatal error: Uncaught ParseLibraryException: [141]: parse.com error: Error thrown in /home/content/35/10518935/html/parsePHP3/parse.php on line 183

surly i uncommented //BELOW HELPS WITH DEBUGGING
if(!in_array($responseCode,$expectedCode)){ print_r($response); print_r($args);
} and i created a file parseConfig.php with the necessary infos.

i am calling the cloud function like this in a text.php

<?php include_once 'parse.php'; // Adding the possibility to run parse cloud code functions $cloud = new parseCloud("verifyNumb"); // Setting the params $cloud->set('to',123456); $cloud->set('code',"aZ02fe2a"); // Running the cloud function $result = $cloud->run(); print_r($result); ?>

What is included in parse.php include 'parseConfig.php'; include 'parseObject.php'; include 'parseQuery.php'; include 'parseUser.php'; include 'parseFile.php'; include 'parsePush.php'; include 'parseGeoPoint.php'; include 'parseACL.php'; include 'parseCloud.php'; ///yes it is included

Am i missing something ? can someone please point me to the right direction. Thank you in advance

polo2244 commented 10 years ago

Alright guys it worked!