Page 1 of 1

Service request for server code fails a number of times and then runs ok and fail again

Posted: Sun Sep 07, 2014 3:07 pm
by Mark Davies

Hi,
I'm still pretty new to Appery.io, so please excuse me if I have not read all the documentation that might pertain to this specific issue.

I started developing my app by calling the normal (generated) service requests created from importing them from the database services, but then I decided that I should rather have another service layer in between the application and database service, just to ensure that I have the option to execute some additional business logic if I need it later.

So, I started off by creating a service for the login and the logout requests and did this by adding a new script in the server code section. This new script now calls the methods for DatabaseUser.login and DatabaseUser.logout respectively. The code seems to work fine, but I found that the request to these services fails quite a few times before it succeeds. Is there something wrong with my code or is there something going wrong elsewhere?

See the attached image for a debug log screen-shot. (in this image the first request failed, but immediately after that failure I clicked on the button again and then it succeeded. Sometimes I have to repeat it 4 or 5 times before it succeeds)

Image


Service request for server code fails a number of times and then runs ok and fail again

Posted: Sun Sep 07, 2014 4:28 pm
by Alena Prykhodko

Hello Mark,

We'll get back with update as soon as have more news from development team.


Service request for server code fails a number of times and then runs ok and fail again

Posted: Sun Sep 07, 2014 10:33 pm
by Illya Stepanov

Hi Marc,

Yes, we reproduced this issue, working on resolving it.
We'll post an update here when we have more information.


Service request for server code fails a number of times and then runs ok and fail again

Posted: Mon Sep 08, 2014 12:35 am
by Illya Stepanov

We had just now have made some re-administration, could you please try your scripts and let us know the result.


Service request for server code fails a number of times and then runs ok and fail again

Posted: Mon Sep 08, 2014 4:30 am
by Mark Davies

Hi,

Yes, that seems to have resolved the problem.

Thanks for the quick response, much appreciated.