From 689868798dbbcf2e3c0077ece154b5511edd73c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20T=C3=B6lle?= Date: Sun, 10 Sep 2023 20:59:58 +0200 Subject: [PATCH] fix: failing healthcheck for spotify api API started returning 403 on all requests --- src/health-check/health-check.controller.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/health-check/health-check.controller.ts b/src/health-check/health-check.controller.ts index b5ff426..c44124f 100644 --- a/src/health-check/health-check.controller.ts +++ b/src/health-check/health-check.controller.ts @@ -27,7 +27,10 @@ export class HealthCheckController { () => this.http.pingCheck( "spotify-web", - this.config.get("SPOTIFY_WEB_API_URL") + this.config.get("SPOTIFY_WEB_API_URL"), + { + validateStatus: () => true, + } // Successful as long as we get a valid HTTP response back } ), () => this.typeorm.pingCheck("db"), ]);