swagger-editor
swagger-editor copied to clipboard
editor.swagger.io giving me a blank zip file
- OS: Windows 11
- Browser: Chrome
- Version: Version 127.0.6533.100 (Official Build) (64-bit)
- Method of installation: editor.swagger.io
- Swagger-Editor version:
- Swagger/OpenAPI version: Swagger 2.0
Going to editor.swagger.io I load "Swagger Petstore 2.0" and try to generate server code (aspnetcore, or any other one) I get a corrupted file which appears to be empty. The file is about 520 bytes.
If I load Swagger Petstore - OpenAPI 3.0 the server code generation works.
Same issue here. When attempting to generate server code (any language), a 500 error is returned from generator.swagger.io/api/gen/download/<hash>. As a temporary workaround, I found that opening the download link in a new tab allows the download to work.
It's worth trying generator3.swagger.io or generator.swagger.io directly to see if there is an issue with the underlying Swagger Codegen. I would normally have though browser issue, but Chrome is supported so not sure. Cany anyone else reproduce this with the standard Petstore example? Else we may need to close as an edge-case.
@ponelat this issue was back in August, after a couple of days it started working again. I tried to deploy my own docker container but the codegen wasn't working as well on that. Is codegen done somewhere else and not within the docker container? Is there a depency in the docker container causing the codegen not to work?
The problem still exist. Which was the last working stable version?
@ponelat This issue still seems to be occurring. I’ve tried generator3.swagger.io directly, and it worked as expected, returning a binary stream for immediate download.
When using generator.swagger.io directly, it returns a download URL, and just like the web based editor, the link often results in a 500 error when first accessed. After waiting a few seconds, retrying the same URL usually works once. I suspect the issue arises because the download is attempted before the file has been fully generated on the server.