Closed mengmengh2022 closed 8 months ago
Hi @mengmengh2022 ,
since 0.9 and 3.0 the implementation of the simpleproxy has been changed completely. Can you try with the following mapping?
server:
customMiddleware:
- name: ui5-middleware-simpleproxy
mountPath: /com/sap/grc/lib/featuretoggles/features/featureToggles.json
afterMiddleware: compression
configuration:
baseUri: http://localhost:3000/localService/featureToggles.json
strictSSL: false
Before - in the pre-releases 0.x versions - the mountPath to baseUri mapping wasn't always correct and some mappings worked just by accident.
HTH
Hello @petermuessig, Thank for the suggestion, sadly this new mapping also does not work. This is the error in console:
And this is current setting in yaml:
Thanks and best regads, Mengmeng
Hi @mengmengh2022
I found an issue in the mapping of mountPath to baseUri in the proxy implementation and will fix it with the following PR: https://github.com/ui5-community/ui5-ecosystem-showcase/pull/962
I release a new version in 10-20 mins - please validate with the latest version then...
Hello @petermuessig, thank you for the fix, I confirm that it is now working with ui5-middleware-simpleproxy version 3.2.14. BR Mengmeng
Describe the bug After updating the ui5-middleware-simpleproxy version from 0.9.0 to 3.2.12, the prory url does not work any more in FE mockserver.
Related setting in ui5.yaml:
Package.json:
To Reproduce Steps to reproduce the behavior:
Expected behavior The request to " /com/sap/grc/lib/featuretoggles/features" should be forwarded to local path " http://localhost:3000/localService/featureToggles.json"
Screenshots
Desktop (please complete the following information):
Additional context Add any other context about the problem here.