Closed mariotoffia closed 3 years ago
I'm using excalidraw via asciidoc-kroki (from @Mogztter) - It seems that if the file gets to big or too many objects in the drawing it will fail to render the svg image. Attached both JSON files respective images of failing and the one working.
The public instance of Kroki returns a "414 Request-URI Too Large" when the URI exceeds 4K bytes. It ensures that the public instance will run smoothly. Please note that you can configure a higher value if you are self-hosting Kroki.
In this case, the Asciidoctor Kroki extension should use a POST request but I think the limit should be 4000 and not 4096.
I will transfer this issue since it's not related to Kroki (or at least Kroki is working as expected).
I will transfer this issue since it's not related to Kroki (or at least Kroki is working as expected).
Actually I cannot transfer an issue from another organization :disappointed: Could you please open a new issue at: https://github.com/mogztter/asciidoctor-kroki?
Thanks @Mogztter - I'll create a new issue at asciidoctor-kroki!
Currently, this value is not configurable. For reference, we could update the value using https://vertx.io/docs/apidocs/io/vertx/core/http/HttpServerOptions.html#setMaxInitialLineLength-int-.
It would allow to increase the default value (4096) on self-hosted instance.
A proposal for this issue in https://github.com/yuzutech/kroki/pull/626
fixed in 7c0664e
Hi and thanks for this great piece of software! :)
I'm using excalidraw via asciidoc-kroki (from @Mogztter) - It seems that if the file gets to big or too many objects in the drawing it will fail to render the svg image. Attached both JSON files respective images of failing and the one working.
This works:![image](https://user-images.githubusercontent.com/1716527/105049300-cd2a4780-5a6c-11eb-9644-8839d7f62224.png)
This (from excalidraw.com) do not work:![image](https://user-images.githubusercontent.com/1716527/105049414-e7fcbc00-5a6c-11eb-965f-52d4a744773b.png)
json-files.zip
Cheers, Mario :)