Skip to content

Commit 247b8a8

Browse files
committed
fix(settings): handle plain text response in Prometheus connection test
Signed-off-by: jackey.zhang <jackey.zhang@woqutech.com>
1 parent e00b315 commit 247b8a8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

prometheus/src/components/Settings/Settings.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,10 @@ export function Settings(props: SettingsProps) {
116116
}
117117

118118
const proxyUrl = `/clusters/${selectedCluster}/api/v1/namespaces/${namespace}/services/${service}:${port}/proxy${subPath}/-/healthy`;
119-
await request(proxyUrl);
119+
await request(proxyUrl, {
120+
method: 'GET',
121+
isJSON: false,
122+
});
120123

121124
setTestStatus('success');
122125
setTestMessage(t('Connection successful!'));

0 commit comments

Comments
 (0)