From 6a908397cd8a6189123b91ea9d68f683af2bed05 Mon Sep 17 00:00:00 2001 From: Meier Lukas Date: Wed, 10 Dec 2025 13:28:28 +0100 Subject: [PATCH] fix(plex): test connection not fully checking connection (#4617) --- packages/integrations/src/plex/plex-integration.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/integrations/src/plex/plex-integration.ts b/packages/integrations/src/plex/plex-integration.ts index 982a617eb..ee5b9a6da 100644 --- a/packages/integrations/src/plex/plex-integration.ts +++ b/packages/integrations/src/plex/plex-integration.ts @@ -169,17 +169,15 @@ export class PlexIntegration extends Integration implements IMediaServerIntegrat protected async testingAsync(input: IntegrationTestingInput): Promise { const token = super.getSecretValue("apiKey"); - const response = await input.fetchAsync(this.url("/"), { + const response = await input.fetchAsync(super.url("/prefs"), { headers: { "X-Plex-Token": token, + Accept: "application/json", }, }); if (!response.ok) return TestConnectionError.StatusResult(response); - const result = await response.text(); - - await PlexIntegration.parseXmlAsync(result); return { success: true }; }