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 76a35f5 commit 5dd83d1Copy full SHA for 5dd83d1
packages/mcp-server/src/mcp/utils.ts
@@ -3,11 +3,11 @@ export async function fetch_with_timeout(
3
timeout_ms: number = 10000,
4
): Promise<Response> {
5
try {
6
- const response = await fetch(url, { signal: AbortSignal.timeout(timeoutMs) });
+ const response = await fetch(url, { signal: AbortSignal.timeout(timeout_ms) });
7
return response;
8
} catch (error) {
9
if (error instanceof Error && error.name === 'AbortError') {
10
- throw new Error(`Request timed out after ${timeoutMs}ms`);
+ throw new Error(`Request timed out after ${timeout_ms}ms`);
11
}
12
throw error;
13
0 commit comments