Skip to content

Commit 5f1f48e

Browse files
JanKoehnleinroboquat
authored andcommitted
[payment] added more resilience to GitHub payment endpoint
1 parent 4e131e2 commit 5f1f48e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

components/ee/payment-endpoint/src/github/subscription-reconciler.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ export class GithubSubscriptionReconciler {
9494
'User-Agent': 'gitpod/payment'
9595
}
9696
});
97+
if (!resp.ok) {
98+
log.error(`Error getting accounts for plan ${plan.name} from GitHub: '${resp.statusText}'`, { plan, statusText: resp.statusText, status: resp.status });
99+
break;
100+
}
97101

98102
const items: MarketplaceAccountListing[] = JSON.parse(await resp.text());
99103
if (items.length == 0) {

0 commit comments

Comments
 (0)