From 7aec5deb0ee5ac9c7bf15c3564cd0a880e29f43a Mon Sep 17 00:00:00 2001 From: Rob Herley Date: Wed, 6 Dec 2023 18:20:01 -0500 Subject: [PATCH] more --- dist/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index 94763b7..10e50a0 100644 --- a/dist/index.js +++ b/dist/index.js @@ -5646,8 +5646,13 @@ class ArtifactHttpClient { 'Content-Type': contentType }; try { - const response = yield this.retryableRequest(() => __awaiter(this, void 0, void 0, function* () { return this.httpClient.post(url, JSON.stringify(data), headers); })); + // const response = await this.retryableRequest(async () => + const response = yield this.httpClient.post(url, JSON.stringify(data), headers); const body = yield response.readBody(); + (0, core_1.debug)(`[Response] ${body}`); + if (response.message.statusCode !== 200) { + throw new Error(`Non-200: ${response.message.statusCode}`); + } return JSON.parse(body); } catch (error) {