Giter VIP home page Giter VIP logo

Comments (11)

CarlosOrozco88 avatar CarlosOrozco88 commented on July 21, 2024 1

Im calling it up over VPN too.
I think i will activate logLevel of this proxy to debug and other proxys to error debugLevel (next version), then in vscode menu: Help > Toggle Developer Tools > Console so you can check the logs, i hope we can find some helpfull messages...

By the way, you can check it now but all proxy are in info debugLevel.

from ui5-tools.

CarlosOrozco88 avatar CarlosOrozco88 commented on July 21, 2024
  • Other odataProxy configuration
  • MountPath configuration
  • ODATA auth

from ui5-tools.

CarlosOrozco88 avatar CarlosOrozco88 commented on July 21, 2024

I published a new version with mountpath configurable, it works with odataProxy "Other" configuration.

You can change it in the workspace configuration or with command ui5-tools.configurator.odataProvider

from ui5-tools.

itelSchiller avatar itelSchiller commented on July 21, 2024

I have tested it with the north wind service, but it does not seem to work.
image
image

from ui5-tools.

CarlosOrozco88 avatar CarlosOrozco88 commented on July 21, 2024

Hi,

could you try now with version 0.1.8?
Additionally, when Other odataProxy is configured, odataUri and odataMountPath accepts multiple entries:

Configuration:
image

Using first proxy:
image

Using second proxy:
image

You can check it with the example workspace included in this repo.

Thanks for de feedback!

from ui5-tools.

itelSchiller avatar itelSchiller commented on July 21, 2024

Great, now it works!
That would help a lot of people in the development.

Only in a special case does it get complicated. If mine calls up a server/gateway with a port in the URL https://my.internal.Server:com:8443/

Then the following error appears:
GET http://localhost:3000/mydestination 500 (Internal Server Error)
Error occured while trying to proxy to: localhost:3000

from ui5-tools.

CarlosOrozco88 avatar CarlosOrozco88 commented on July 21, 2024

I dont know how to check this error, i use this config in work that use ports in the url:
image
Your url https://my.internal.Server:com:8443/ contains two :, i dont know if this could be the problem...
That config "is the same" that this one:
image

By the way, if you think its necessary, i can concatenate the odataMountPath with odataUri in order to avoid this configuration, so it will look like in the future:
image
I dont like this, because then you cant customice odataMountPath with "random" string and forces to exist that path in odataUri server)

Also i think its necessary another config property to separate resourcesUri and odataUri, and Other option to resourcesProxy that allows to customice resourcesUri

from ui5-tools.

itelSchiller avatar itelSchiller commented on July 21, 2024

The : behind com was accidental.

Probably that are my own network problems. Because I call it up over VPN.
I can access Gateway's OData service directly from the browser, but not the proxy.

from ui5-tools.

CarlosOrozco88 avatar CarlosOrozco88 commented on July 21, 2024

Now you can create a .env file in root workspace with:
UI5TOOLS_ODATA_USER=user1
UI5TOOLS_ODATA_PASSWORD=pass1
If you have multiple destinations, then the next ones:
UI5TOOLS_ODATA_USER_2=user2
UI5TOOLS_ODATA_PASSWORD_2=pass2
UI5TOOLS_ODATA_USER_3=user3
UI5TOOLS_ODATA_PASSWORD_3=pass3
...
Can you have a look, please?

Thanks!

from ui5-tools.

itelSchiller avatar itelSchiller commented on July 21, 2024

that works with authentication. also with the mutiple mountpath/destionation

thanks with the dev tools tip

My own mistake is that the gateway has a self-signed certificate. Either you would have to install the certificate on your device, or you could disable this SSL check, like in Postman or in the ui5-tooling-middleware (see screenshots)
Bildschirmfoto 2020-06-09 um 08 40 21
image

from ui5-tools.

CarlosOrozco88 avatar CarlosOrozco88 commented on July 21, 2024

Hi!

In 0.3.1 ssl check is disabled by default. I hope this solves the problem...

from ui5-tools.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.