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)