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
Fixed crash on proxy error
Andrew Bastin4a1988dd23db
diff --git a/components/lenses/renderers/mixins/TextContentRendererMixin.js b/components/lenses/renderers/mixins/TextContentRendererMixin.jsindex 30f31f517..805276498 100644--- a/components/lenses/renderers/mixins/TextContentRendererMixin.js+++ b/components/lenses/renderers/mixins/TextContentRendererMixin.js@@ -4,6 +4,7 @@ export default {},computed: {responseBodyText() {+ if (typeof this.response.body === "string") return this.response.bodyreturn new TextDecoder("utf-8").decode(this.response.body)},},diff --git a/helpers/strategies/AxiosStrategy.js b/helpers/strategies/AxiosStrategy.jsindex ed84e988b..76180b72b 100644--- a/helpers/strategies/AxiosStrategy.js+++ b/helpers/strategies/AxiosStrategy.js@@ -12,10 +12,6 @@ export const cancelRunningAxiosRequest = () => {const axiosWithProxy = async (req, { state }) => {try {- console.log({- ...req,- wantsBinary: true,- })const { data } = await axios.post(state.postwoman.settings.PROXY_URL || "https://postwoman.apollosoftware.xyz/",{