Azure deployment setup #297

Closed
RecentRunner wants to merge 429 commits from azure-deploy into main
Showing only changes of commit 0c9feefeb5 - Show all commits

View File

@@ -6,7 +6,9 @@ export async function fetchAllPages(urlBuilder) {
while (page < totalPages) {
const res = await fetch(urlBuilder(page));
if (!res.ok) {
throw new Error(`HTTP ${res.status} ${res.statusText}`);
const body = await res.text().catch(() => '')
const detail = body ? `: ${body.slice(0, 200)}` : ''
throw new Error(`HTTP ${res.status}${detail}`)
}
const data = await res.json();