-
-
Notifications
You must be signed in to change notification settings - Fork 163
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
[BUG] Validate command not working (403 Unauthorized) #802
Comments
I've been seeing this in CI builds (Github Actions) and locally as well. The fastest way to repro it I've found is running this command repeatedly
It seems to fail more often on Github Actions than locally, but that might just be random luck. I get two flavors of errors Most common:
Have seen this one twice:
|
Which project is responsible for the jar hosting? this one? Just that we contact the right people about it... |
It was working until a couple hours ago, now I consistently get the error:
unlike @alexturek, I have not been able to get this to work over repeated attempts. |
Reporting the same error locally and on my CI/CD pipelines: $ openapi-generator-cli version
Unable to query repository, because of: "Request failed with status code 403" |
Getting this as well when running |
Checking the source, it looks like this is coming when trying to connect to search.maven.org. And it looks like there have been several outages of this today. https://status.maven.org/ |
We hit this today too. Could be due to the above outages, or perhaps Maven has started rate-limiting our hosted CI IPs: Maven Central and the tragedy of the commons. Wondering how many organisations that are experiencing this are only seeing this from a third-party hosted CI system? We use CircleCI. |
I'm getting this even on my home network (Comcast) |
Interestingly enough, I'm getting when on VPN to office, but when I get off VPN, it works. |
We're also running into this with our AWS CI Pipelines. The affected commands work fine on my local machine. |
I was still getting a 403 error, so I resolved it by using Docker. docker run --rm -v ./${mount_dir}:/local openapitools/openapi-generator-cli:v7.3.0 generate -i /local/openapi.yaml -g typescript-fetch -o /local/src |
You can also use your internal (mave/nexus etc) repositories if you're in enterprise
|
I have this issue since yesterday afternoon. |
Solution that works for us: Turns out the README already states that you should add the "openapitools.json" file to your VCS. |
the generate-sdks job was failing due to some network calls that were performed when validating the OAS, this is avoided by specifying the version of the generator-cli in openapitools.json see also: OpenAPITools/openapi-generator-cli#802
Hello all affected, Details:
Response:
|
I also had the same issue today. {
"$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json",
"spaces": 2,
"generator-cli": {
"version": "7.8.0"
}
} |
🎉 This issue has been resolved in version 2.13.8 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This issue has been resolved in version 2.13.9 🎉 The release is available on: Your semantic-release bot 📦🚀 |
did a test to confirm now if errors occur when querying serach.maven.org, it will fallback to a fixed list of released versions
please give it a try with the latest stable version 2.13.9 if the query (search.maven.org) fails for whatever reason, the CLI will fallback to a fixed list of released versions. to completely bypass making a request to https://search.maven.org, simply set the environment variable |
the generate-sdks job was failing due to some network calls that were performed when validating the OAS, this is avoided by specifying the version of the generator-cli in openapitools.json see also: OpenAPITools/openapi-generator-cli#802
the generate-sdks job was failing due to some network calls that were performed when validating the OAS, this is avoided by specifying the version of the generator-cli in openapitools.json see also: OpenAPITools/openapi-generator-cli#802
The command
openapi-generator-cli validate -i filename.yaml
stopped working an hour ago, and the following error is displayed:It seems the program tries to create the "openapitools.json" by downloading it from a S3 bucket which fails due to 403 ? If I create the file manually, the command works.
The text was updated successfully, but these errors were encountered: