iljapostnovs / VSCodeUI5Plugin

Visual Studio Code Extension for UI5 Development
Apache License 2.0
61 stars 6 forks source link

Startup issue with api-index.json #298

Closed Zeth90 closed 1 year ago

Zeth90 commented 1 year ago

Hi,

i like the plugin very much, but in some kind of VMs, Company Networks i get these error.

SAPUI5 Extension error: Error occurred sending HTTP Request. Uri: "https://ui5.sap.com/1.96.12/docs/api/api-index.json". Message: "Maximum number of redirects exceeded". Response data: "undefined"

The URL is reachable by browser and no proxy is used. But the second url in the round brackets has an false '%22', but maybe log issue? Is there an option to size number of redirect up? Or is it possible to load the api.index.json from local file system? Maybe as feature option.

Thanks and greets

Zeth90

iljapostnovs commented 1 year ago

Hi,

I am not sure what does second url in the round brackets has an false '%22' mean :) Please clarify what do you mean by that. Anyway, I don't think that there are any problems with the links itself.

I don't think that any redirect size will fix the problem. If it exceeds the limit, most probably requests went on the non ending loop. My opinion is that something is up with the networking. The URL is reachable by browser something what is reachable via browser can behave differently using nodejs. I am not sure how I can help here, the logic behind fetching is just "send GET request" using axios and that's it. If it doesn't work on some machines, I think it's misconfiguration on any layer on the machine itself rather than plugin bug.

Or is it possible to load the api.index.json from local file system? Maybe as feature option. It's not so straight forward. Not only api-index is fetched, but metadata for every separate library is fetched as well. So basically there are many json files which are being fetched and I doubt that anyone would go through the process of saving every lib metadata locally.

iljapostnovs commented 1 year ago

Closed because of inactivity