1

Im trying to transfer data from my VPS to my Parse database using the following test script. Everything works from creating to setting the object but saving to the database causes a 500 Internal Server Error. I replaced the words "APPLICATION ID" and such with their actual values, and setup Parse according to the quick start guide. Im not sure where the issue could be.

PHP test script

<?php
require 'vendor/autoload.php';
use Parse\ParseClient;
ParseClient::initialize("APPLICATION ID", "REST API KEY","MASTER KEY");
use Parse\ParseObject;
$testObject = ParseObject::create("TestObject");
$testObject->set("foo", "bar");
try {
$testObject->save();
echo 'success';
}
catch (ParseException $ex) {
  echo 'Failed to create new obj, with error message: ' + $ex->getMessage()\;
}?>
1

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.