wip fix proxy warn

This commit is contained in:
Rizky 2024-01-18 15:00:57 +08:00
parent 7e39e7dbf0
commit 3e5a7ea411
1 changed files with 2 additions and 1 deletions

View File

@ -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;
} }
} }
}; };