Unable to execute openapi-generator-cli version[BUG]
@kay-schecker y travaille déjà.
Depuis le 22/6/2021.
Évaluation
Cette issue n'a pas encore été évaluée.
Description
Using version 2.3.5 of openapi-generator-cli in the Node environment, I am getting the error shown below. Googling, I found bug #130 in this issue database. This issue states that a solution was put in place, but does not provide any guidance on how to implement the solution.
[rflatau@localhost server]$ npx @openapitools/openapi-generator-cli version
Unable to query repository, because of: "Request failed with status code 501"
Response:
server squid/3.4.8
mime-version 1.0
date Tue, 22 Jun 2021 13:39:33 GMT
content-type text/html
content-length 3484
x-squid-error ERR_UNSUP_REQ 0
vary Accept-Language
content-language en
x-cache MISS from intergate2
x-cache-lookup NONE from intergate2:3132
via 1.1 intergate2 (squid/3.4.8)
connection close
(node:35812) UnhandledPromiseRejectionWarning: TypeError: error.response.data.on is not a function
at VersionManagerService.printResponseError (/home/rflatau/devel/learning_center-main/api/node_modules/@openapitools/openapi-generator-cli/main.js:922:33)
at /home/rflatau/devel/learning_center-main/api/node_modules/@openapitools/openapi-generator-cli/main.js:828:18
at /home/rflatau/devel/learning_center-main/api/node_modules/rxjs/dist/cjs/internal/operators/catchError.js:13:46
at OperatorSubscriber._this._error (/home/rflatau/devel/learning_center-main/api/node_modules/rxjs/dist/cjs/internal/operators/OperatorSubscriber.js:38:21)
at OperatorSubscriber.Subscriber.error (/home/rflatau/devel/learning_center-main/api/node_modules/rxjs/dist/cjs/internal/Subscriber.js:80:18)
at OperatorSubscriber.Subscriber._error (/home/rflatau/devel/learning_center-main/api/node_modules/rxjs/dist/cjs/internal/Subscriber.js:104:30)
at OperatorSubscriber.Subscriber.error (/home/rflatau/devel/learning_center-main/api/node_modules/rxjs/dist/cjs/internal/Subscriber.js:80:18)
at OperatorSubscriber.Subscriber._error (/home/rflatau/devel/learning_center-main/api/node_modules/rxjs/dist/cjs/internal/Subscriber.js:104:30)
at OperatorSubscriber.Subscriber.error (/home/rflatau/devel/learning_center-main/api/node_modules/rxjs/dist/cjs/internal/Subscriber.js:80:18)
at OperatorSubscriber.Subscriber._error (/home/rflatau/devel/learning_center-main/api/node_modules/rxjs/dist/cjs/internal/Subscriber.js:104:30)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:35812) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:35812) [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.
The referenced bug report seems to imply that proxy settings might be the problem. Investigating now how to deal with specifying the proxies. We are behind a corporate proxy. I have tried setting http_proxy and https_proxy environment parameters without success. I believe that there is a way to configure the openapi-generator-cli to deal with proxies, but I have not been able to find this.
I found two configurations within the referenced bug report: here and here. But no details on the structure of the configuration file.
What is the configuration needed to get the command below work? How do I augment the command to use the configuration file:
npx @openapitools/openapi-generator-cli version
- Langage dominant
- TypeScript
- Étoiles
- 2k
- Forks
- 210
- Merge moyen
- 55 min
- PR mergées (30 j)
- 1
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de OpenAPITools/openapi-generator-cli
-
[FEATURE] consider using caret ranges instead of pinned exact versions for runtime dependenciesOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
OpenAPITools/openapi-generator-cli#1277 · 1 commentaire · 2 réactions ·
-
[FEATURE] Add a side-effect-free command to resolve version tagsPeut-être pris @c19yamamoto l’a pris il y a 1 jour. Ouverte
Difficulté 4/5 3-5 jours Accessibilité débutants 32/100
-
[BUG] JAVA_OPTS is incorrectly evaluatedPeut-être à nouveau libre @kay-schecker l’a pris il y a 138 jours, et aucune pull request n’est ouverte. Ouvertebug
OpenAPITools/openapi-generator-cli#1213 · 1 personne assignée ·
-
[BUG] Proxy configuration of NPM not used when downloading .jar via version managerPeut-être à nouveau libre @kay-schecker l’a pris il y a 192 jours, et aucune pull request n’est ouverte. Ouvertebug
OpenAPITools/openapi-generator-cli#1190 · 1 personne assignée ·
-
[BUG] openapiGeneratorIgnoreList is missing from schemaPeut-être à nouveau libre @kay-schecker l’a pris il y a 243 jours, et aucune pull request n’est ouverte. Ouvertebug
OpenAPITools/openapi-generator-cli#1138 · 1 commentaire · 1 personne assignée ·
Toutes les issues de OpenAPITools/openapi-generator-cli
Issues similaires
-
area:plugins enhancement platform:vscode
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
anthropics/claude-code#103166 ·
Les mainteneurs répondent en général sous 1 jour
-
Add: Add pogo tv indiaOuvertecheck:failed streams:add
Difficulté 1/5 Moins d'une heure Accessibilité débutants 90/100
iptv-org/iptv#55744 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 90/100
jitsi/jitsi-meet#18021 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 86/100
Les mainteneurs répondent en général sous 1 jour
-
spec: discovery input example can contain multiple aliases for one parameter, with no canonical oneOuverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 95/100
x402-foundation/x402#3841 ·
Les mainteneurs répondent en général sous 1 jour