I have 8 Windows Phone games that uses the leaderboard service. Each leaderboard in my games have "All", "Month" and "Day" filtering, and the Month and Day filtering is currently giving me 504 almost all the time in all (!) of my games. The problem sees to be when calling GetTopNRankers with start and end date. All-filtering works fine - if this is because of caching or something I don't know (All is default in my UI so this api method gets called more often).
In my Windows Phone game I get JSON Parsing Exception in Newtonsoft.Json.WindowsPhone.dll after a long time, but I guess this is because I don't get valid json back. I tested the api calls for one of my games using the Javascript SDK, and it was here I got the 504 GATEWAY_TIMEOUT. The request url looked like this (api key etc in header):
https://api.shephertz.com/cloud/1.0/game/scoreboard/White/ranking/2015-09-01T20:10:30.106Z/2015-09-05T20:10:30.106Z?version=1.0
From Windows Phone I'm using App42_WINDOWS_PHONE_SDK_2.4. An API-call looks like this:
var callback = new App.App42ApiCallback(GetScoresCallbackWeek);
_scoreBoardService.GetTopNRankers(mode, DateTime.Now.AddDays(-7), DateTime.Now, 50, callback);
This has been a problem for a while in my games, and the odd thing is that all my games have the same problem.
Looking forward to an answer,
Rune