foojayio / discoapi

The foojay discovery api (discoapi) is made to discover java packages (jre/jdk) from different distributions.
GNU General Public License v2.0
107 stars 12 forks source link

`major_versions` endpoint returns invalid JSON #102

Closed creiterer closed 2 weeks ago

creiterer commented 2 weeks ago

Querying the major versions via https://api.foojay.io/disco/v3.0/major_versions returns invalid JSON in the response body:

can't parse JSON.  Raw result:

{
  "result":[
    }
,
    }
,
    {
      "major_version":23,
      "term_of_support":"STS",
      "maintained":true,
      "early_access_only":true,
      "release_status":"ea",
      "versions": [  ]
    }
,
    {
      "major_version":22,
      "term_of_support":"STS",
      "maintained":true,
      "early_access_only":false,
      "release_status":"ga",
      "versions": [
        "22.0.1+12",
        "22.0.1+10",
        "22.0.1+8",
        "22.0.1+1",
        "22.0.1",
        "22+37",
        "22+36",
        "22+35",
        "22"
      ]
    }
,
    {
      "major_version":21,
      "term_of_support":"LTS",
      "maintained":true,
      "early_access_only":false,
      "release_status":"ga",
      "versions": [
        "21.0.3+5094",
        "21.0.3+5091",
        "21.0.3+4992",
        "21.0.3+4801",
        "21.0.3+4653",
        "21.0.3+4581",
        "21.0.3+4532",
        "21.0.3+4461",
        "21.0.3+13",
        "21.0.3+12",
        "21.0.3+11",
        "21.0.3+10",
        "21.0.3+9",
        "21.0.3",
        "21.0.2+3977",
        "21.0.2+3751",
        "21.0.2+3463",
        "21.0.2+3414",
        "21.0.2+15",
        "21.0.2+14",
        "21.0.2+13",
        "21.0.2+2",
        "21.0.2",
        "21.0.1+15",
        "21.0.1+12",
        "21.0.1+11",
        "21.0.1",
        "21+2121",
        "21+351",
        "21+37",
        "21+35",
        "21"
      ]
    }
,
    {
      "major_version":20,
      "term_of_support":"STS",
      "maintained":true,
      "early_access_only":false,
      "release_status":"ga",
      "versions": [
        "20.0.2+10",
        "20.0.2+9",
        "20.0.2",
        "20.0.1+10",
        "20.0.1+9",
        "20.0.1",
        "20+37",
        "20+36",
        "20"
      ]
    }
,
    }
,
    }
,
    {
      "major_version":17,
      "term_of_support":"LTS",
      "maintained":true,
      "early_access_only":false,
      "release_status":"ga",
      "versions": [
        "17.0.11+120724",
        "17.0.11+120723",
        "17.0.11+120720",
        "17.0.11+13122",
        "17.0.11+19",
        "17.0.11+13",
        "17.0.11+12",
        "17.0.11+11",
        "17.0.11+10",
        "17.0.11+9",
        "17.0.11+1",
        "17.0.11",
        "17.0.10+120714",
        "17.0.10+120712",
        "17.0.10+117114",
        "17.0.10+108723",
        "17.0.10+108721",
        "17.0.10+108717",
        "17.0.10+100050",
        "17.0.10+100048",
        "17.0.10+82927",
        "17.0.10+82926",
        "17.0.10+12076",
        "17.0.10+12071",
        "17.0.10+11861",
        "17.0.10+15",
        "17.0.10+14",
        "17.0.10+13",
        "17.0.10+8",
        "17.0.10+7",
        "17.0.10+3",
        "17.0.10+1",
        "17.0.10",
        "17.0.9+108711",
        "17.0.9+100047",
        "17.0.9+100046",
        "17.0.9+11662",
        "17.0.9+11627",
        "17.0.9+10879",
        "17.0.9+10877",
        "17.0.9+10873",
        "17.0.9+19",
        "17.0.9+16",
        "17.0.9+11",
        "17.0.9+9",
        "17.0.9+8",
        "17.0.9+1",
        "17.0.9",
        "17.0.8.1+100032",
        "17.0.8.1+10801",
        "17.0.8.1+10721",
        "17.0.8.1+10593",
        "17.0.8.1+53",
        "17.0.8.1+1",
        "17.0.8.1",
        "17.0.8+100022",
        "17.0.8+10008",
        "17.0.8+15",
        "17.0.8+8",
        "17.0.8+7",
        "17.0.8+1",
        "17.0.8",
        "17.0.7+82916",
        "17.0.7+10006",
        "17.0.7+10005",
        "17.0.7+10002",
        "17.0.7+9852",
        "17.0.7+9794",
        "17.0.7+9662",
        "17.0.7+9641",
        "17.0.7+9531",
        "17.0.7+19",
        "17.0.7+7",
        "17.0.7+1",
        "17.0.7",
        "17.0.6+8299",
        "17.0.6+19",
        "17.0.6+10",
        "17.0.6+1",
        "17.0.6",
        "17.0.5+21",
        "17.0.5+8",
        "17.0.5+1",
        "17.0.5",
        "17.0.4.1+19",
        "17.0.4.1+1",
        "17.0.4.1",
        "17.0.4+15",
        "17.0.4+9",
        "17.0.4+8",
        "17.0.4+2",
        "17.0.4+1",
        "17.0.4",
        "17.0.3.1+2",
        "17.0.3+19",
        "17.0.3+7",
        "17.0.3+6",
        "17.0.3+1",
        "17.0.3",
        "17.0.2+13",
        "17.0.2+9",
        "17.0.2+8",
        "17.0.2+1",
        "17.0.2",
        "17.0.1+12",
        "17.0.1+11",
        "17.0.1",
        "17+35",
        "17+1",
        "17"
      ]
    }
,
    }
,
    }
,
    }
,
    }
,
    }
,
    {
      "major_version":11,
      "term_of_support":"LTS",
      "maintained":true,
      "early_access_only":false,
      "release_status":"ga",
      "versions": [
        "11.0.23+12",
        "11.0.23+10",
        "11.0.23+9",
        "11.0.23+1",
        "11.0.23",
        "11.0.22+12",
        "11.0.22+7",
        "11.0.22+2",
        "11.0.22+1",
        "11.0.22",
        "11.0.21+10",
        "11.0.21+9",
        "11.0.21+8",
        "11.0.21+1",
        "11.0.21",
        "11.0.20.1+1",
        "11.0.20.1",
        "11.0.20+9",
        "11.0.20+8",
        "11.0.20+1",
        "11.0.20",
        "11.0.19+7",
        "11.0.19+1",
        "11.0.19",
        "11.0.18+10",
        "11.0.18+1",
        "11.0.18",
        "11.0.17+8",
        "11.0.17+7",
        "11.0.17+1",
        "11.0.17",
        "11.0.16.1+1",
        "11.0.16.1",
        "11.0.16+9",
        "11.0.16+8",
        "11.0.16+2",
        "11.0.16+1",
        "11.0.16",
        "11.0.15.1+2",
        "11.0.15+10",
        "11.0.15+9",
        "11.0.15+1",
        "11.0.15",
        "11.0.14.1+1",
        "11.0.14.1",
        "11.0.14+101",
        "11.0.14+10",
        "11.0.14+9",
        "11.0.14+1",
        "11.0.14",
        "11.0.13+8",
        "11.0.13+1",
        "11.0.13",
        "11.0.12.1",
        "11.0.12+7",
        "11.0.12+1",
        "11.0.12",
        "11.0.11+10",
        "11.0.11+9",
        "11.0.11+1",
        "11.0.11",
        "11.0.10+9",
        "11.0.10+6",
        "11.0.10+5",
        "11.0.10+4",
        "11.0.10+3",
        "11.0.10+2",
        "11.0.10+1",
        "11.0.10",
        "11.0.9.1+1",
        "11.0.9.1",
        "11.0.9+12",
        "11.0.9+11",
        "11.0.9+2",
        "11.0.9+1",
        "11.0.9",
        "11.0.8+10",
        "11.0.8+3",
        "11.0.8+1",
        "11.0.8",
        "11.0.7+10",
        "11.0.7+4",
        "11.0.7+3",
        "11.0.7+2",
        "11.0.7+1",
        "11.0.7",
        "11.0.6+10",
        "11.0.6+9",
        "11.0.6+1",
        "11.0.6",
        "11.0.5+11",
        "11.0.5+10",
        "11.0.5+5",
        "11.0.5+4",
        "11.0.5+3",
        "11.0.5+2",
        "11.0.5+1",
        "11.0.5",
        "11.0.4+11",
        "11.0.4+10",
        "11.0.4+1",
        "11.0.4",
        "11.0.3+12",
        "11.0.3+7",
        "11.0.3",
        "11.0.2+9",
        "11.0.2+7",
        "11.0.2",
        "11.0.1.13",
        "11.0.1+13",
        "11.0.1+8",
        "11.0.1+7",
        "11.0.1+6",
        "11.0.1+5",
        "11.0.1+4",
        "11.0.1+3",
        "11.0.1+2",
        "11.0.1+1",
        "11.0.1",
        "11+28",
        "11+9",
        "11"
      ]
    }
,
    }
,
    }
,
    {
      "major_version":8,
      "term_of_support":"LTS",
      "maintained":true,
      "early_access_only":false,
      "release_status":"ga",
      "versions": [
        "8.0.412+11",
        "8.0.412+9",
        "8.0.412+8",
        "8.0.412+4",
        "8.0.412+2",
        "8.0.412",
        "8.0.411+3",
        "8.0.411",
        "8.0.402+11",
        "8.0.402+8",
        "8.0.402+7",
        "8.0.402+6",
        "8.0.402+4",
        "8.0.402+3",
        "8.0.402+1",
        "8.0.402",
        "8.0.401",
        "8.0.392+12",
        "8.0.392+9",
        "8.0.392+8",
        "8.0.392+3",
        "8.0.392",
        "8.0.391",
        "8.0.382+13",
        "8.0.382+6",
        "8.0.382+5",
        "8.0.382+3",
        "8.0.382+2",
        "8.0.382",
        "8.0.381",
        "8.0.372+11",
        "8.0.372+7",
        "8.0.372+2",
        "8.0.372+1",
        "8.0.372",
        "8.0.371",
        "8.0.362+11",
        "8.0.362+9",
        "8.0.362+8",
        "8.0.362+3",
        "8.0.362+2",
        "8.0.362+1",
        "8.0.362",
        "8.0.361",
        "8.0.352+11",
        "8.0.352+8",
        "8.0.352+2",
        "8.0.352",
        "8.0.351",
        "8.0.345+2",
        "8.0.345+1",
        "8.0.345",
        "8.0.342+7",
        "8.0.342",
        "8.0.341",
        "8.0.333+2",
        "8.0.333",
        "8.0.332+11",
        "8.0.332+9",
        "8.0.332+8",
        "8.0.332",
        "8.0.331",
        "8.0.322+6",
        "8.0.322",
        "8.0.321",
        "8.0.312+7",
        "8.0.312",
        "8.0.311",
        "8.0.302+8",
        "8.0.302",
        "8.0.301",
        "8.0.292+11",
        "8.0.292+10",
        "8.0.292",
        "8.0.282+8",
        "8.0.282+1",
        "8.0.282",
        "8.0.275+2",
        "8.0.275+1",
        "8.0.275",
        "8.0.272+17",
        "8.0.272+10",
        "8.0.272",
        "8.0.265+11",
        "8.0.265+1",
        "8.0.265",
        "8.0.262+19",
        "8.0.262+18",
        "8.0.262+17",
        "8.0.262+10",
        "8.0.262",
        "8.0.252+225",
        "8.0.252+14",
        "8.0.252+9",
        "8.0.252",
        "8.0.242+213",
        "8.0.242+20",
        "8.0.242+8",
        "8.0.242+7",
        "8.0.242",
        "8.0.232+195",
        "8.0.232+18",
        "8.0.232+10",
        "8.0.232+9",
        "8.0.232",
        "8.0.222+178",
        "8.0.222+11",
        "8.0.222+10",
        "8.0.222",
        "8.0.212+165",
        "8.0.212+163",
        "8.0.212+162",
        "8.0.212+12",
        "8.0.212+4",
        "8.0.212",
        "8.0.202+152",
        "8.0.202+150",
        "8.0.202+8",
        "8.0.202+5",
        "8.0.202",
        "8.0.201+10",
        "8.0.201+9",
        "8.0.201",
        "8.0.192+135",
        "8.0.192+134",
        "8.0.192+12",
        "8.0.192+1",
        "8.0.192",
        "8.0.191+12",
        "8.0.191",
        "8.0.181+122",
        "8.0.181+13",
        "8.0.181+2",
        "8.0.181",
        "8.0.172+1",
        "8.0.172",
        "8.0.171+10",
        "8.0.171",
        "8.0.163+1",
        "8.0.163",
        "8.0.162+1",
        "8.0.162",
        "8.0.161+14",
        "8.0.153+1",
        "8.0.153",
        "8.0.152+16",
        "8.0.152",
        "8.0.151+12",
        "8.0.144+1",
        "8.0.144",
        "8.0.141+16",
        "8.0.131+11",
        "8.0.131+1",
        "8.0.131",
        "8.0.121+15",
        "8.0.121+13",
        "8.0.121",
        "8.0.112+16",
        "8.0.112",
        "8.0.111+15",
        "8.0.102+14",
        "8.0.102",
        "8.0.101+13",
        "8.0.101",
        "8.0.92+15",
        "8.0.92",
        "8.0.91+14",
        "8.0.91",
        "8.0.72+15",
        "8.0.72",
        "8.0.71+15",
        "8.0.71",
        "8.0.66+17",
        "8.0.66",
        "8.0.65+17",
        "8.0.65",
        "8.0.60+27",
        "8.0.60",
        "8.0.51+16",
        "8.0.51",
        "8.0.45+14",
        "8.0.45",
        "8.0.40+25",
        "8.0.40",
        "8.0.31+13",
        "8.0.31",
        "8.0.25+17",
        "8.0.25",
        "8.0.20+26",
        "8.0.20",
        "8.0.11+12",
        "8.0.11",
        "8.0.5+13",
        "8.0.5",
        "8.0.1",
        "8+412",
        "8+402",
        "8+392",
        "8+382",
        "8+372",
        "8+362",
        "8+352",
        "8+342",
        "8+332",
        "8+322",
        "8+312",
        "8+302",
        "8+292",
        "8+282",
        "8+275",
        "8+272",
        "8+265",
        "8+262",
        "8+252",
        "8+242",
        "8+232",
        "8+222",
        "8+132",
        "8"
      ]
    }
,
    {
      "major_version":7,
      "term_of_support":"LTS",
      "maintained":true,
      "early_access_only":false,
      "release_status":"ga",
      "versions": [
        "7.6.0.2+17",
        "7.0.352+1",
        "7.0.342+1",
        "7.0.332+1",
        "7.0.322+1",
        "7.0.312+1",
        "7.0.302+1",
        "7.0.292+7",
        "7.0.285+1",
        "7.0.282+10",
        "7.0.272+10",
        "7.0.272+1",
        "7.0.262+10",
        "7.0.252+10",
        "7.0.242+7",
        "7.0.232+6",
        "7.0.222+8",
        "7.0.211+10",
        "7.0.201+2",
        "7.0.201",
        "7.0.191+8",
        "7.0.191",
        "7.0.181+1",
        "7.0.181",
        "7.0.171+12",
        "7.0.171",
        "7.0.161+14",
        "7.0.161",
        "7.0.154+1",
        "7.0.154",
        "7.0.141+11",
        "7.0.141",
        "7.0.131+16",
        "7.0.131",
        "7.0.121+16",
        "7.0.121",
        "7.0.111+13",
        "7.0.111",
        "7.0.101+14",
        "7.0.101",
        "7.0.95+15",
        "7.0.95",
        "7.0.91+15",
        "7.0.91",
        "7.0.85+15",
        "7.0.85",
        "7.0.80+15",
        "7.0.80",
        "7.0.79+15",
        "7.0.79",
        "7.0.76+13",
        "7.0.76",
        "7.0.75",
        "7.0.72+14",
        "7.0.72",
        "7.0.71",
        "7.0.67",
        "7.0.65+17",
        "7.0.65",
        "7.0.60+19",
        "7.0.60",
        "7.0.55+13",
        "7.0.55",
        "7.0.51+31",
        "7.0.51",
        "7.0.45+31",
        "7.0.45",
        "7.0.40",
        "7.0.25",
        "7.0.21",
        "7.0.17",
        "7.0.15",
        "7.0.13",
        "7.0.11",
        "7.0.10",
        "7.0.9",
        "7.0.7",
        "7.0.6",
        "7.0.5",
        "7.0.4",
        "7.0.3",
        "7.0.2",
        "7.0.1",
        "7"
      ]
    }
,
    }
  ],
  "message":""
}
HanSolo commented 2 weeks ago

I'm on it...thanks for the heads up

HanSolo commented 2 weeks ago

Should be fixed now

creiterer commented 2 weeks ago

Yes, I can confirm that it works again. Thanks for the quick fix!