mirror of
https://github.com/OpenFactorioServerManager/factorio-server-manager.git
synced 2024-12-27 02:43:45 +02:00
Add workaround for 503 error in the mod portal api
This commit is contained in:
parent
0bd4572b31
commit
2700ee4520
@ -30,7 +30,8 @@ type ModPortalStruct struct {
|
||||
|
||||
// get all mods uploaded to the factorio modPortal
|
||||
func ModPortalList() (interface{}, error, int) {
|
||||
req, err := http.NewRequest(http.MethodGet, "https://mods.factorio.com/api/mods?page_size=max", nil)
|
||||
// FIXME revert to `page_size=max` when the api got fixed: https://forums.factorio.com/viewtopic.php?f=189&t=94119&p=531316
|
||||
req, err := http.NewRequest(http.MethodGet, "https://mods.factorio.com/api/mods?page_size=999999", nil)
|
||||
if err != nil {
|
||||
return "error", err, http.StatusInternalServerError
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user