I’m trying to get the proxy to work, but it is apparently not matching on the service request. I’m attempting to hit a rest-service running in a VM on my machine. Both are wifi-ed to the same subnet.
here is the trace from ionic serve showing it took the mapping:
[15:26:32] Proxy added:/ui/getList => http://192.168.10.110:8888/ui/getList
[15:26:32] Proxy added:/ui/create => http://192.168.10.110:8888/ui/create
[15:26:32] Proxy added:/ui/getOverviewData => http://192.168.10.110:8888/ui/getOverviewData
If I paste the final URLs (right side) in the browser, I hit the service and get the correct response.
Here is the service call, which executes, but it goes to localhost and 404s.
getList(): Observable<applicationModel.ListResponse[]> {
return this.http.get('/ui/getList').map(this.getListResponse);
}
It makes the service request, but apparently misses the mapping as it just goes to localhost:8100/ui/getList and sends back a 404.
Sorry to ask a basic question, but I can’t find much help on this, and I’m not sure how to go about debugging it either. Thanks for your help.