Proxies issue


#1

Hi guys,
I just want to report that Ionic 2 on the file ionic.config.json doesn’t handle more than one proxy, it gives an error. The following code doesn’t work.

“proxies”: [
{
“path”: “/api”,
“proxyUrl”: “http://api.wunderground.com/api
},
{
“path”: “/search”,
“proxyUrl”: “http://autocomplete.wunderground.com
}
]

In this specific case I can stick only to the /search, so I can use the proper link of the api above, and everything works fine. I’m using node 7.2.0 and I have the following error which I don’t know has something to do with the proxies’ issue:

(node:7336) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: chalk[color] is not a function
(node:7336) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.