diff --git a/client/app/scripts/utils/web-api-utils.js b/client/app/scripts/utils/web-api-utils.js index 3fd3a979d1..fe48b0faca 100644 --- a/client/app/scripts/utils/web-api-utils.js +++ b/client/app/scripts/utils/web-api-utils.js @@ -214,7 +214,7 @@ export function deletePipe(pipeId) { } export function getPipeStatus(pipeId) { - const url = `/api/pipe/${encodeURIComponent(pipeId)}/check`; + const url = `api/pipe/${encodeURIComponent(pipeId)}/check`; reqwest({ method: 'GET', url: url, diff --git a/client/server.js b/client/server.js index 62fb9d7c8b..009b4d5447 100644 --- a/client/server.js +++ b/client/server.js @@ -107,6 +107,7 @@ var proxyRules = new HttpProxyRules({ }); var pathProxy = httpProxy.createProxy({ws: true}); +pathProxy.on('error', function(err) { console.error('path proxy error', err); }); var pathProxyPort = port + 1; const proxyPathServer = http.createServer(function(req, res) { var target = proxyRules.match(req);