When I create an object (of type Friendship), I run some afterSave code.
The objects are created successfully, and the business logic appears consistent when that is the case. However the server returns the following to me somewhat inconsistently:
Server reported an error: FAULT = '0' [Unable to save object - invalid data type for properties - friends. You can change the property type in developer console.] <Unable to save object - invalid data type for properties - friends. You can change the property type in developer console.>
and also:
Server reported an error: FAULT = '0' [[Ljava.lang.String; cannot be cast to com.backendless.BackendlessUser] <[Ljava.lang.String; cannot be cast to com.backendless.BackendlessUser>
Also at times it returns this error when trying to add a user to their own friends list:
<java.lang.RuntimeException: java.lang.RuntimeException: java.lang.StackOverflowError>
Now like I said, everything appears to be created successfully, but I consistently get these errors at times. So from my client-side it is making things confusing as I need to handle errors vs success accordingly.
And that is hard to do when things are apparently successful but it’s telling me there’s an error. So I’m wondering if maybe I am indeed doing something wrong here or if it’s potentially another issue. Thanks