[Mod Web API] API crashes when accessing certain pages

A place to talk about the official Factorio mod portal (https://mods.factorio.com)
Post Reply
blacksfk
Manual Inserter
Manual Inserter
Posts: 1
Joined: Wed Mar 25, 2020 3:14 am
Contact:

[Mod Web API] API crashes when accessing certain pages

Post by blacksfk »

You can (unintentionally) crash your mod API by going to roughly the middle page of JSON results. Or at least throw 500 errors.
Examples:
  1. page_size = 500, page = 5
  2. page_size = 1000, page = 3
  3. page_size = 125, page = 20
Navigating to pages before and after the "middle" seem to return results just fine. Seems to me as though you have some sort of mod parsing error or similar? Sorry if this is the wrong place, not sure where else to put it.

User avatar
Sanqui
Factorio Staff
Factorio Staff
Posts: 268
Joined: Mon May 07, 2018 7:22 pm
Contact:

Re: [Mod Web API] API crashes when accessing certain pages

Post by Sanqui »

Yeah, there was a mod with corrupted data, it's been fixed now. Thank you for the details!
ovo

Post Reply

Return to “Mod portal Discussion”