Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
Fix Proxy error issue #1027
Andrew Bastinebf7b32408cc
diff --git a/helpers/strategies/AxiosStrategy.js b/helpers/strategies/AxiosStrategy.jsindex 76180b72b..c170fc734 100644--- a/helpers/strategies/AxiosStrategy.js+++ b/helpers/strategies/AxiosStrategy.js@@ -23,7 +23,7 @@ const axiosWithProxy = async (req, { state }) => {})- if (!data.data.success) {+ if (!data.success) {throw new Error(data.data.message || "Proxy Error")}diff --git a/helpers/strategies/ExtensionStrategy.js b/helpers/strategies/ExtensionStrategy.jsindex b96737e28..041776ecd 100644--- a/helpers/strategies/ExtensionStrategy.js+++ b/helpers/strategies/ExtensionStrategy.js@@ -27,7 +27,7 @@ const extensionWithProxy = async (req, { state }) => {const parsedData = JSON.parse(data)- if (!parsedData.data.success) {+ if (!parsedData.success) {throw new Error(parsedData.data.message || "Proxy Error")}