Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f1e208f

Browse files
fix: testing executeEndpoint
1 parent b0dd656 commit f1e208f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎src/server.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class CoCreateLazyLoader {
9999
let name = data.method.split(".")[0];
100100
let method = data.endpoint.split(" ")[0].toUpperCase();
101101

102-
data = await this.processOperators(data, "", name);
102+
// data = await this.processOperators(data, "", name);
103103

104104
let apiConfig = await this.getApiConfig(data, name);
105105
// --- Refined Validation ---
@@ -111,7 +111,7 @@ class CoCreateLazyLoader {
111111
`Configuration error: Missing base url for API '${name}'.`
112112
);
113113
}
114-
apiConfig = await this.processOperators(data, getApiConfig, "");
114+
// apiConfig = await this.processOperators(data, getApiConfig, "");
115115

116116
let override = apiConfig.endpoint?.[data.endpoint] || {};
117117

@@ -255,6 +255,10 @@ class CoCreateLazyLoader {
255255
* @throws {Error} If the request fails or returns a non-ok status.
256256
*/
257257
async makeHttpRequest(url, options) {
258+
if (!this.server.AbortController) {
259+
console.log("makeHttpRequest test");
260+
return {};
261+
}
258262
const controller = new this.server.AbortController();
259263
const timeoutId = setTimeout(() => controller.abort(), options.timeout);
260264
options.signal = controller.signal;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /