SAP / yeoman-ui

Provide rich user experience for Yeoman generators using VSCode extension or the browser.
Apache License 2.0
100 stars 44 forks source link

A connection error occurred, please ensure the target host is available on the network: "http code: UNABLE_TO_VERIFY_LEAF_SIGNATURE" #838

Open skandasoft opened 1 month ago

skandasoft commented 1 month ago

Hi,

When using the application generator for fiori to connect to a system and on entering password and clicking on authenticate leads to this error.

    [2024-06-06 13:59:14] DEBUG: ConnectionValidator.checkSapService() - error: 
      [2024-06-06 13:59:14] DEBUG: ConnectionValidator.validateUrl() - status: 401; authType: undefined;

ConnectionValidator.checkSapService() - error: unable to verify the first certificate

I have set the environment variable - NODE_TLS_REJECT_UNAUTHORIZED = 0.

and have the vscode profile parameter in settings.json -> "http.proxyStrictSSL": false, Still doesn't help clicking back and forth finally makes the wizard close automatically.

{"message":"@sap/fiori:app generator failed - env.on(error) Cannot read properties of undefined (reading 'version')","stack":"TypeError: env.on(error) Cannot read properties of undefined (reading 'version')\n\tat default_1._applyDefaults (C:\Users\kmp0070\AppData\Roaming\npm\node_modules\@sap\generator-fiori\generators\app-gen-shared\index.js:1:676670)\n\tat default_1.writing (C:\Users\kmp0070\AppData\Roaming\npm\node_modules\@sap\generator-fiori\generators\app-gen-shared\index.js:1:673385)\n\tat Object. (C:\Users\kmp0070\AppData\Roaming\npm\node_modules\@sap\generator-fiori\generators\commonlibs\index.js:2:5420103)\n\tat C:\Users\kmp0070\AppData\Roaming\npm\node_modules\@sap\generator-fiori\generators\commonlibs\index.js:2:4662366\n\tat new Promise ()\n\tat C:\Users\kmp0070\AppData\Roaming\npm\node_modules\@sap\generator-fiori\generators\commonlibs\index.js:2:4662126\n\tat C:\Users\kmp0070\AppData\Roaming...