Hi. I have “Compra” table, that has two relationships with Users table: “dependiente” and “user”. Whenever I try to save a new “Compra” object, i get some messages in console and process never ends. It doesn´t print any errors, it just keeps running and never ends … I am really confused with this.
I have attached my “Compra” class, part of the code that is failing and also some log messages that were printed when saving the object.
¿What should be the right way to save this kind of objects? I have checked that “Compra” objects with null value in relationships “dependiente” and “user” are correctly saved. But when i assign one BackendlessUser to any of those relationships, i get the error.
What i am passing to setProperties is the findById method response. It was working in previous SDK versions.
It have tried what you suggest but is not working either:
‘NSInvalidArgumentException’, reason: ‘-[Users getProperties]: unrecognized selector sent to instance 0xaeae290’
I have try some different things and [user getProperties] does not return an NSDictionary. ¿Should it return one?
What i am trying to do is:
Retrieve all attributtes and relationships for a specific User.
Set that result to my current BackendlessUser.
After the findBy method, ¿how can i assign those results to my current BackendlessUser instance?
I have attached a screenshot when debugging in xcode. “user” object, which is the response of the findBy method, seems to be null and there is this message: “error: use of undeclared identifier ‘null’ error: 1 errors parsing expression”, which didn´t happened with previous SDK version. ¿Could this be the problem?
I am trying to do the same thing with Android SDK (login user and run findById(user objectId) to get user relationships values because login does not return those values), and i am getting an error too, so i think i may be doing it wrong. Could you please post an example of how to do that in iOS an Android?
I can do async login, but i am getting the same error when trying to read user relationships with Backendless.Data.of( BackendlessUser.class ).loadRelations( user, rels ) …
I just checked and login is working just fine for me. Do you run it on a device or emulator? If the latter, could you run Charles Proxy and see what the traffic on the wire looks like? Specifically what the client gets back from the server.
I have done some test with this, with iOS and Java/Android projects.
In Java project, everything is OK: i can login and fetch user relationships after that. But, in Android project (i have created a new one), i am still getting the same error: BackendlessException{ code: ‘Internal client exception’, message: ‘null’ }, which doesn´t give too many details.
In iOS, you have updated the SDK too. I have download it and tested in my project (this thread was originally open due to an iOS error). Now i can login but i am not able yet to retrieve all user relationships data. In my app, Users have 4 relationships (three are one-to-one and one is one-to-many), but i only get the one-to-many data.
I have attached two txt, one has the Android logs and the other has some iOS messages. I am very frustrated with this because i have no idea of what can be the problem here.