Forum Discussion

gideonv's avatar
gideonv
New Contributor
30 days ago

JSON to HTML Conversion error

Hi,
I upload a JSON file the the Swagger editor and user Generate client to generate an HTML or HTML2 zip file. The zip file cannot be opened. The issue did not occur 3 months ago. I then used the JSON file from 3 months ago and the issue also occurs there. Is there an issue with the HTML conversion?

2 Replies

  • gideonv's avatar
    gideonv
    New Contributor

    Additional information: 
    When checking the downloaded zip file, I get the following information:

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
    <title>Error 500 Request failed.</title>
    </head>
    <body><h2>HTTP ERROR 500 Request failed.</h2>
    <table>
    <tr><th>URI:</th><td>/api/gen/download/0e5ae523-1c68-4f27-b8ed-0e945e227734</td></tr>
    <tr><th>STATUS:</th><td>500</td></tr>
    <tr><th>MESSAGE:</th><td>Request failed.</td></tr>
    <tr><th>SERVLET:</th><td>jersey</td></tr>
    </table>
    <hr/><a href="https://eclipse.org/jetty">Powered by Jetty:// 9.4.53.v20231009</a><hr/>

    </body>
    </html>

    Thanks
    Gideon

  • I got this too when trying to generate a Python SDK from an OAS 2.0 version JSON file, using the Generate Client at https://editor.swagger.io/

    It seems the tool is broken for any OAS 2.0 version and a 520Byte .zip file is generated containing an HTP 500 error, like the one you got.

    Support told me it's broken temporarily and that they are introducing 'enhanced functionality exclusive to SmartBear API Hub plans', so it may be something to do with that and the move to the new tool which supports OAS 3.0 and greater.

    It's a pity, as this was a great free tool which sounds like it may sadly no longer be so in future.