From 70a5ead0ff73d0e64ed513ef4b5722ee069beade Mon Sep 17 00:00:00 2001 From: ingalls Date: Tue, 19 Sep 2023 14:16:11 -0600 Subject: [PATCH] More Logging --- ingest-zip/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ingest-zip/index.js b/ingest-zip/index.js index 88352bb..24203ea 100644 --- a/ingest-zip/index.js +++ b/ingest-zip/index.js @@ -238,6 +238,8 @@ async function fetcher(url, body) { }); if (!res.ok) { + console.error('ERROR: Headers:', JSON.stringify(Object.fromEntries(res.headers))); + const texterr = await res.text(); let jsonerr; try { @@ -246,6 +248,7 @@ async function fetcher(url, body) { throw new Error(texterr); } + console.error('ERROR: Body:', JSON.stringify(jsonerr)); if (jsonerr.message) throw new Error(jsonerr.message); throw new Error(texterr); }