Mark Davies
Posts: 0
Joined: Mon Sep 01, 2014 8:50 am

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

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

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

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

Hello Mark,

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

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

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

Hi Marc,

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

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

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

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

Mark Davies
Posts: 0
Joined: Mon Sep 01, 2014 8:50 am

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

Hi,

Yes, that seems to have resolved the problem.

Thanks for the quick response, much appreciated.

Return to “Issues”