LeaderboardService - Internal Server Error

0 votes

On iOS, the getTopRankersByGroup-method takes a lot of time to load, sometimes it works, but most of the time it fails with an internal server error:


2015-10-20 00:33:51.986 exception={"app42Fault":{"httpErrorCode":500,"appErrorCode":1500,"message":"Internal Server Error","details":"Internal Server Error. Please try again"}}


My code:

    ServiceAPI *servicAPI = [[ServiceAPI alloc] init];

    servicAPI.apiKey = APP42_APP_KEY;

    servicAPI.secretKey = APP42_SECRET_KEY;

    ScoreBoardService *scoreboardService = [servicAPI buildScoreBoardService];

    NSArray *arr = [[NSArray alloc]initWithObjects:@"Nick", nil];  

    Game *game=[scoreboardService getTopRankersByGroup:GAME_NAME group:arr];

    NSMutableArray *scoreList = game.scoreList;


I don't have a lot of leaderboard entries (around 10 in total), so I don't think it's a leaderboard-size-issue. The same method works fine on Android. (in the above code, the "Nick" username is of course just a sample, I'm using the actual usernames of the game in the production code)


asked Oct 19, 2015 in App42 Cloud API-BaaS by support (29 points)

1 Answer

0 votes

Hello Nick,

We are trying to replicate this issue at our end and will update you on the same as soon as possible.

Also, from the code snippet, it seems you are using App42 Sync APIs which will be depricated soon. So, i will suggest you to use its Async version which you can download from here.


answered Oct 20, 2015 by rajeev.etc (1,660 points)
Hi Rajeev,

thank you for your reply. Have you found anything yet? Other users seem to be having the same issue, with no fix in sight:



Best regards,
Hi Nick,

Thanks for your patience.
How frequent you are getting this issue? Also, is it possible that you can share your sample project with us in which we can reproduce this issue?
If yes, please share on support@shephertz.com, it will help to debug the problem.

Hi Rajeev,

I've now upgraded to the async API and still get the error (most of the time, i.e. 9 out of 10 times). Sometimes, it's an Internal Server Error (500), sometimes it's this error:

2015-11-03 12:17:39.452[532:411929] Exception = The data couldn’t be read because it isn’t in the correct format.
2015-11-03 12:17:39.453[532:411929] HTTP error Code = 3840
2015-11-03 12:17:39.453[532:411929] App Error Code = 0
2015-11-03 12:17:39.454[532:411929] User Info = {
    NSDebugDescription = "No value.";

Best regards,
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com