From bf3846d661aae9b332691798355627abddf94d26 Mon Sep 17 00:00:00 2001 From: Jan Koehnlein Date: Fri, 19 Nov 2021 16:58:27 +0000 Subject: [PATCH] [payment] added more resilience to GitHub payment endpoint --- .../ee/payment-endpoint/src/github/subscription-reconciler.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/ee/payment-endpoint/src/github/subscription-reconciler.ts b/components/ee/payment-endpoint/src/github/subscription-reconciler.ts index a1ba73cb9affa6..4f5344dfb0db3f 100644 --- a/components/ee/payment-endpoint/src/github/subscription-reconciler.ts +++ b/components/ee/payment-endpoint/src/github/subscription-reconciler.ts @@ -94,6 +94,10 @@ export class GithubSubscriptionReconciler { 'User-Agent': 'gitpod/payment' } }); + if (!resp.ok) { + log.error(`Error getting accounts for plan ${plan.name} from GitHub: '${resp.statusText}'`, { plan, statusText: resp.statusText, status: resp.status }); + break; + } const items: MarketplaceAccountListing[] = JSON.parse(await resp.text()); if (items.length == 0) {