lemaiwo / ui5-middleware-route-proxy

UI5Tooling route proxy
MIT License
11 stars 4 forks source link

Fails to intercept and forward requests 100% of the time. #11

Open toadslop opened 4 years ago

toadslop commented 4 years ago

This package came standard with my yeoman setup. I filled in my details in the ui5.yaml

Here's what it looks like: ui5.yaml:

      afterMiddleware: compression
      configuration:
        debug: true
        /sap/opu/odata/sap/:
          target: http://vhcals4hci.dummy.nodomain:50000
          replacePath: true
          auth:
            fromEnv: false
            user: *****
            pass: *****
            client: ***

manifest.json

      "mainService": {
        "uri": "/sap/opu/odata/sap/******",
        "type": "OData",
        "settings": {
          "localUri": "localService/metadata.xml"
        }
      }
    }

No matter what, when the call is made it's just to local host, not to target defined in ui5.yaml. What's going on here?