Skip to content

Commit cf0cc4c

Browse files
committed
hotfix: springfiles 500 — drop springname=*&logical=or, just category=map
The previous query used springname=*&logical=or which UNION'd all categories (maps + games + engines = ~6400 entries) and exceeded the server's response cap somewhere around 4200 entries — every limit value above that got a 500 back. This broke SynchronizeMapsFromSpringFiles in production. Plain category=map filters server-side to maps only (~3570 today), so any sane limit works. Set to 100000 for headroom.
1 parent b932a06 commit cf0cc4c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

AutoRegistrator/WebFolderSync.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ public List<string> GetFileList()
1515
var ret = new List<string>();
1616
using (var wc = new WebClient())
1717
{
18-
var url = $"{GlobalConst.SpringfilesBaseUrl}json.php?category=map&springname=*&logical=or&nosensitive=on&limit=1000000&offset=0";
18+
// category=map alone makes the server filter to maps (~3570 entries today). Earlier we used
19+
// springname=*&logical=or which UNION'd all categories and exceeded the server's response cap
20+
// (~4200 entries) when limit was set high — caused 500s. See git history.
21+
var url = $"{GlobalConst.SpringfilesBaseUrl}json.php?category=map&limit=100000&offset=0";
1922
var json = wc.DownloadString(url);
2023
var entries = JsonConvert.DeserializeObject<List<SpringfilesEntry>>(json);
2124
if (entries == null) return ret;

0 commit comments

Comments
 (0)