wip fix proxy warn
This commit is contained in:
parent
7e39e7dbf0
commit
3e5a7ea411
|
|
@ -86,11 +86,12 @@ export const fetchViaProxy = async (
|
||||||
formatted_body = JSON.stringify(JSON.parse(body), null, 2);
|
formatted_body = JSON.stringify(JSON.parse(body), null, 2);
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
|
|
||||||
throw new Error(
|
console.warn(
|
||||||
`\n\n⚡ Failed to JSON.parse fetch result of ${url}:\n\n${JSON.stringify(
|
`\n\n⚡ Failed to JSON.parse fetch result of ${url}:\n\n${JSON.stringify(
|
||||||
text
|
text
|
||||||
)} \n\nwith params:\n${formatted_body}`
|
)} \n\nwith params:\n${formatted_body}`
|
||||||
);
|
);
|
||||||
|
return text;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue