Page 1 of 1

REST service doesn't return data even though it's successful ...

Posted: Sun Dec 16, 2012 6:41 am
by Agon Bina

I have the same service using it in another screen and it works perfectly fine, when I use it on another screen, mapping the data exactly in the same GRID structure, it executes successfully but the data won't show up(ie the success function executes my alert). I think it's returning just a blank string ... When I test it on the service 'page' it works fine as well and returns the json structure correctly.

I am trying to get details of a User object by passing the object ID (ie the user id). Does the sesstionToken has to do anything with this maybe? Does that user has to be logged in in order to receive that objects details?
I am basically trying to get the details of another User while logged in with a different user, if that makes sense.


REST service doesn't return data even though it's successful ...

Posted: Sun Dec 16, 2012 6:46 am
by Agon Bina

I've tried it with the Tiggzi proxy being on but still the same thing happens ...
I even re-created the rest service and it still does the same thing, very weird ...


REST service doesn't return data even though it's successful ...

Posted: Sun Dec 16, 2012 5:39 pm
by Agon Bina

nvm fixed it by calling the service in the screen before and saving the data to local storage ... another one of those moments when Tiggzi should come in and make it easy for us, instead it wasted 3-4 hours of my time trying to figure out why this was happening ...


REST service doesn't return data even though it's successful ...

Posted: Tue Dec 18, 2012 4:02 pm
by Kateryna Grynko

Hello,

I would advice you to use Chrome Developer Tools or Firebug to review data received from REST Service.
If Database doesn't return correct data, take a look at the error message with description.


REST service doesn't return data even though it's successful ...

Posted: Tue Dec 18, 2012 7:15 pm
by Agon Bina

It does return the data when I map it to the local storage, it just doesn't show them in the screen container labels for some reason.

Is there any way to track the REST service outgoing and incoming data in the chrome dev tool? I am not getting any error, it's just that something is wrong with the way Tiggzi is displaying the mapped data.


REST service doesn't return data even though it's successful ...

Posted: Tue Dec 18, 2012 8:34 pm
by maxkatz