diff --git a/src/web/price-check/AppBootstrap.vue b/src/web/price-check/AppBootstrap.vue index 00596c47..c4d9f0ec 100644 --- a/src/web/price-check/AppBootstrap.vue +++ b/src/web/price-check/AppBootstrap.vue @@ -18,7 +18,8 @@ Failed to load leagues -
Error: {{ leaguesService.loadingError }}
+
Error: {{ leaguesService.loadingError }}
+
Verify that the realm is not under maintenance and pathofexile.com is loading.
diff --git a/src/web/price-check/Leagues.ts b/src/web/price-check/Leagues.ts index 67f8450b..d09755c9 100644 --- a/src/web/price-check/Leagues.ts +++ b/src/web/price-check/Leagues.ts @@ -30,6 +30,7 @@ export class LeaguesService { try { const response = await fetch('https://api.pathofexile.com/leagues?type=main&realm=pc&compact=1') + if (!response.ok) throw new Error(JSON.stringify(Object.fromEntries(response.headers))) const leagues: Array<{ id: string }> = await response.json() const tradeLeagues = leagues.filter(league => !league.id.startsWith('SSF '))