Skip to content
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

error while trying to save ParseRole #208

Closed
slimshdy opened this issue Feb 3, 2016 · 3 comments
Closed

error while trying to save ParseRole #208

slimshdy opened this issue Feb 3, 2016 · 3 comments
Labels
type:question Support or code-level question

Comments

@slimshdy
Copy link

slimshdy commented Feb 3, 2016

error thrown by parse-server while trying to delete parseRelation between Role and _User

this is the code I have executed in php:

$role = get_role_by_name($data->roleName)[0];
 $role->getUsers()->remove($user);

try {
   $role->save(true);
}
catch (ParseException $ex) {
   echo "Error: " . $ex->getCode() . " " . $ex->getMessage()."<br/>";
}

and this is the error thrown by parse-server

31897cb6-ca6a-11e5-9e8f-019bd341b0db

Thanks in advance!

@slimshdy slimshdy changed the title error wile trying to save ParseRole error while trying to save ParseRole Feb 3, 2016
@gfosco
Copy link
Contributor

gfosco commented Feb 5, 2016

can you run the server with VERBOSE=1 and capture the request?

@slimshdy
Copy link
Author

slimshdy commented Feb 5, 2016

it's sending a null addRelation op that should not be sent in this request, so It seems to be a parse php sdk bug in Internal/ParseRelationOperation.php. Lines 41 and 42 must be deleted in order to keep empty these arrays.

error verbose

@gfosco
Copy link
Contributor

gfosco commented Feb 20, 2016

Please re-open this if it still occurs in v2.1.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:question Support or code-level question
Projects
None yet
Development

No branches or pull requests

3 participants