apicurio-studio icon indicating copy to clipboard operation
apicurio-studio copied to clipboard

Bug: json download of api specifaction returns internal server error with HTTP status code 200

Open schelv opened this issue 4 years ago • 5 comments

The preview documentation page currently does not work. There is a problem with this http request: http://{ip}:8093/download?type=api&format=json&dereference=true&id=1 the response body is

<html><head><title>Error</title></head><body>Internal Server Error</body></html>

but the status code is 200 OK

This should be a 500.

schelv avatar Aug 25 '21 14:08 schelv

Fair enough - errors should definitely be handled better in that flow. Do you have any clues (e.g. on the server console) about what went wrong? Any stack traces or other info?

EricWittmann avatar Aug 26 '21 18:08 EricWittmann

Yes, the stack traces are here #1640 I really like the tool btw👍

schelv avatar Aug 27 '21 08:08 schelv

Perfect, thanks for the stack trace.

EricWittmann avatar Aug 31 '21 17:08 EricWittmann

Seeing a similar issue - when downloading yaml file, it has the contents

ErrorInternal Server Error

Yaml download was working for a long time, suddenly stopped. Downloading in json continues to work.

xarnthehero avatar Jun 16 '22 19:06 xarnthehero

@xarnthehero the problem with downloading YAML is documented here:

https://github.com/Apicurio/apicurio-studio/issues/1925#issuecomment-1179185749

It will be fixed in the next release.

EricWittmann avatar Jul 08 '22 16:07 EricWittmann