Skip to content

Commit

Permalink
increase default timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
ziodave committed Jan 23, 2024
1 parent 4e442dd commit 2dfc9f4
Show file tree
Hide file tree
Showing 3 changed files with 184 additions and 0 deletions.
170 changes: 170 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"@docusaurus/module-type-aliases": "~2.2.0",
"@docusaurus/plugin-client-redirects": "~2.2.0",
"@tsconfig/docusaurus": "^1.0.6",
"patch-package": "^8.0.0",
"typescript": "^4.9.5"
},
"browserslist": {
Expand Down
13 changes: 13 additions & 0 deletions patches/docusaurus-theme-openapi-docs+1.7.3.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/node_modules/docusaurus-theme-openapi-docs/lib/theme/ApiDemoPanel/Execute/makeRequest.js b/node_modules/docusaurus-theme-openapi-docs/lib/theme/ApiDemoPanel/Execute/makeRequest.js
index d0ea10a..906289f 100644
--- a/node_modules/docusaurus-theme-openapi-docs/lib/theme/ApiDemoPanel/Execute/makeRequest.js
+++ b/node_modules/docusaurus-theme-openapi-docs/lib/theme/ApiDemoPanel/Execute/makeRequest.js
@@ -11,7 +11,7 @@ exports.default = void 0;
* LICENSE file in the root directory of this source tree.
* ========================================================================== */

-function fetchWithtimeout(url, options, timeout = 5000) {
+function fetchWithtimeout(url, options, timeout = 30000) {
return Promise.race([fetch(url, options), new Promise((_, reject) => setTimeout(() => reject(new Error("Request timed out")), timeout))]);
}
async function loadImage(content) {

0 comments on commit 2dfc9f4

Please sign in to comment.