Skip to content

Commit 6224043

Browse files
chore: fix in fetch util
1 parent f45fb76 commit 6224043

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/core/src/utils/FetchUtil.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,7 @@ export class FetchUtil {
133133

134134
return Promise.reject(errorData);
135135
} catch (jsonError) {
136-
// If JSON parsing fails, fall back to text
137-
const errorText = await response.text();
138-
139-
return Promise.reject(`Code: ${response.status} - ${response.statusText} - ${errorText}`);
136+
return Promise.reject(`Code: ${response.status} - ${response.statusText}`);
140137
}
141138
}
142139

0 commit comments

Comments
 (0)