Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Jun 6, 2024 · 0 comments

Comments

@skandasoft
Copy link

skandasoft commented Jun 6, 2024

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...

@skandasoft skandasoft changed the title verify the first certificate A connection error occurred, please ensure the target host is available on the network: "http code: UNABLE_TO_VERIFY_LEAF_SIGNATURE" Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant