@norskvideo/ctl-test-harness 0.1.121 → 0.1.122
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/compose-advancing.js +3 -0
- package/package.json +1 -1
package/compose-advancing.js
CHANGED
|
@@ -31,6 +31,9 @@ function hasNode(summary, node) {
|
|
|
31
31
|
}
|
|
32
32
|
async function getJson(fetch, url) {
|
|
33
33
|
const r = await fetch(url, { signal: AbortSignal.timeout(5000) });
|
|
34
|
+
// A sign-in page now comes back under its 401 (norsk-ctl#678); keep the hint.
|
|
35
|
+
if (r.status === 401)
|
|
36
|
+
throw new Error(`GET ${url} -> 401 (a sign-in page? the route needs no auth)`);
|
|
34
37
|
if (!r.ok)
|
|
35
38
|
throw new Error(`GET ${url} -> ${r.status}`);
|
|
36
39
|
const text = await r.text();
|