fix: Converting circular structure to JSON

This commit is contained in:
Draculabo committed 2026-01-15 22:58:05 +08:00
1 parent 5a004d9d16
commit b0ec96d4a6
5 files changed
+91 -12

No files matched your search

+6 -1
View File
@@ -126,7 +126,12 @@ export class QuotaService {
} catch (error: any) {
if (axios.isAxiosError(error)) {
const status = error.response?.status;
const text = JSON.stringify(error.response?.data || '');
let text = '';
try {
text = JSON.stringify(error.response?.data || '');
} catch {
text = '[Unable to serialize response data]';
}
// ✅ Handle 403 Forbidden specifically - return immediately, do not retry
if (status === 403) {