fix: Converting circular structure to JSON
This commit is contained in:
1 parent
5a004d9d16
commit
b0ec96d4a6
5 files changed
+91
-12
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user