Skip to content

error while trying to save ParseRole #208

Description

@slimshdy

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!

Activity

  1. changed the title [-]error wile trying to save ParseRole[/-] [+]error while trying to save ParseRole[/+] on Feb 3, 2016
  2. gfosco commented on Feb 5, 2016

    @gfosco
    Contributor

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

  3. slimshdy commented on Feb 5, 2016

    @slimshdy
    Author

    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

  4. gfosco commented on Feb 20, 2016

    @gfosco
    Contributor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:questionSupport or code-level question

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions