Unable to get local issuer exception
See original GitHub issueBug Report Checklist
- Have you provided a full/minimal spec to reproduce the issue?
- Have you tested with the latest master to confirm the issue still exists?
- Have you searched for related issues/PRs?
- What’s the actual output vs expected output?
Description
I’m using @openapitools/openapi-generator-cli@2.0.3
to generate the code from the openapi spec.
Originally, my code worked with 1.0.18-4.3.1
and I was using the command line e.g.
yarn run openapi-generator generate -i /app/schema.json -g typescript-fetch -o /app/output -t /app/templates
After the migration to 2.x I had to modify the command line to
yarn run openapi-generator-cli generate -i /app/schema.json -g typescript-fetch -o /app/output -t /app/templates
and the output for this call is:
(node:48032) UnhandledPromiseRejectionWarning: Error: unable to get local issuer certificate
at TLSSocket.onConnectSecure (_tls_wrap.js:1321:34)
at TLSSocket.emit (events.js:223:5)
at TLSSocket._finishInit (_tls_wrap.js:794:8)
at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:608:12)
(node:48032) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:48032) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
I’m behind the corporate firewall and I did not expect to have any calls made by the openapi generator. What are they for and can I turn them off?
openapi-generator version
2.0.3
Issue Analytics
- State:
- Created 3 years ago
- Reactions:11
- Comments:10
Top Results From Across the Web
SSL certificate problem: Unable to get local issuer certificate
Ensure that the complete certificate chain is present in the CA bundle file, including the root cert. Resolution - Server Side. This issue...
Read more >SSL Certificate Problem: Unable to get Local Issuer Certificate
The common cause behind “Cause of SSL Certificate Problem: Unable to get Local Issuer Certificate” is an error that causes misconfiguration ...
Read more >Fix Unable to get Local Issuer Certificate Error - AboutSSL
A quick guide to fix the 'SSL Certificate Problem Unable to Get Local Issuer Certificate' Error with .PEM .CRT SSL Certificate format.
Read more >I receive the error "SSL certificate problem: unable to get local ...
Ways to fix this issue: 1) The first, and most successful, solution is to contact hosting company and request assistance. You can ask...
Read more >Unable to get local issuer certificate mailchimp - Stack Overflow
Ways to fix this issue: The most reasonable solution for a localhost install is to download a local copy of the necessary CA...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Also having this issue
I have the same problem and already tested version 2.1.10 and 2.1.5.
This call fails… and I think there is something wrong in the code. I can call the URL from my browser or with curl from terminal. I’m behind a proxy and I think openapi-generator is doing something wrong with the connection.
https://search.maven.org/solrsearch/select?q=g:org.openapitools+AND+a:openapi-generator-cli&core=gav&start=0&rows=200