We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03edbb0 commit 66e247bCopy full SHA for 66e247b
client/src/lib/hooks/useConnection.ts
@@ -241,7 +241,9 @@ export function useConnection({
241
242
const checkProxyHealth = async () => {
243
try {
244
- const proxyHealthUrl = new URL(`${getMCPProxyAddress(config)}/health`);
+ const proxyBaseUrl = getMCPProxyAddress(config).replace(/\/+$/, '');
245
+ const proxyHealthUrl = new URL(`${proxyBaseUrl}/health`);
246
+
247
const proxyHealthResponse = await fetch(proxyHealthUrl);
248
const proxyHealth = await proxyHealthResponse.json();
249
if (proxyHealth?.status !== "ok") {
0 commit comments