Skip to content

Commit 8ad7dfb

Browse files
happy-qiaocopybara-github
authored andcommitted
fix: Fix a bug in the Vertex AI client library.
PiperOrigin-RevId: 615881120
1 parent 3299625 commit 8ad7dfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/functions/post_request.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function getFetchOptions(requestOptions?: RequestOptions): RequestInit {
8181
}
8282
const abortController = new AbortController();
8383
const signal = abortController.signal;
84-
setTimeout(() => abortController.abort, requestOptions.timeoutMillis);
84+
setTimeout(() => abortController.abort(), requestOptions.timeoutMillis);
8585
fetchOptions.signal = signal;
8686
return fetchOptions;
8787
}

0 commit comments

Comments
 (0)