Openapi-generator: 500 error

Created on 15 Jan 2020  ·  9Comments  ·  Source: OpenAPITools/openapi-generator

From today morning getting this error:
"status":500,"error":"Internal Server Error","message":"Could not initialize class io.swagger.v3.parser.OpenAPIV3Parser","path":"/api/gen/clients/typescript-angular"

Any idea? Thank you!

Bug OpenAPI Generator Online Swagger-Parser

Most helpful comment

I've rolled it back to openapi-generator v4.2.2 for the time being while we investigate the issue further.

All 9 comments

Same problem, It seems latest version is incompatible OAS V2 version .

I've rolled it back to openapi-generator v4.2.2 for the time being while we investigate the issue further.

It works, after rolled back.

Issue fixed with #5461, which will be included in the upcoming 4.3.0 release.

I'm hitting the same issue with 4.3.1 again. Code generation works fine on 4.3.0.

Sure, It happens again.

Let me take a look tonight

在 2020年5月9日週六 下午3:28,vellengs notifications@github.com 寫道:

Sure, It happens again.


You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/OpenAPITools/openapi-generator/issues/5004#issuecomment-626121659,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAHEC5DSPCMNNJWFWCXZC7DRQUAY5ANCNFSM4KHBGCYQ
.

http://api.openapi-generator.tech works for me:

williamcheng ~/Code/openapi-generator (rust-single-param) $ curl -X POST -H "content-type:application/json" -d '{"openAPIUrl":"https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/2_0/petstore.yaml"}' \
>     http://api.openapi-generator.tech/api/gen/clients/ruby
{"code":"b43a08c8-6a41-400b-be76-bd725d689afd","link":"http://api.openapi-generator.tech/api/gen/download/b43a08c8-6a41-400b-be76-bd725d689afd"}

http://api-latest-master.openapi-generator.tech results in the 500 errors. I'm taking a look.

UPDATE: No idea off the top of my head. Please use http://api.openapi-generator.tech for the time being. I'll take a deeper look in the coming week if no one has a chance to investigate further.

If it helps, I am getting the following error message interchangeably with the error message already provided.

 class com.fasterxml.jackson.core.JsonFactoryBuilder tried to access private field com.fasterxml.jackson.core.JsonFactory.DEFAULT_ROOT_VALUE_SEPARATOR (com.fasterxml.jackson.core.JsonFactoryBuilder is in unnamed module of loader org.gradle.internal.classloader.VisitableURLClassLoader @38b979c2; com.fasterxml.jackson.core.JsonFactory is in unnamed module of loader org.gradle.internal.classloader.VisitableURLClassLoader @7e8c79cb)

Going back to 4.2.2 works.

Was this page helpful?
0 / 5 - 0 ratings