asciidoctor / asciidoctor-diagram

:left_right_arrow: Asciidoctor diagram extension, with support for AsciiToSVG, BlockDiag (BlockDiag, SeqDiag, ActDiag, NwDiag), Ditaa, Erd, GraphViz, Mermaid, Msc, PlantUML, Shaape, SvgBob, Syntrax, UMLet, Vega, Vega-Lite and WaveDrom.
http://asciidoctor.org
MIT License
435 stars 106 forks source link

Kroki Server returns 414 Request-URI Too Long #345

Closed achimgrimm closed 3 years ago

achimgrimm commented 3 years ago

Once a diagram gets bigger (very common for some diagram types like BPMN), the request to the kroki server will result in a very large URI if HTTP GET is used.

This will result in the error message Failed to generate image: 414 "Request-URI Too Long"

Increasing the max URI length limit on the kroki server is a not an option, as this will also not work with larger diagrams (i.e. normal sized BPMN).

Kroki server allows to use HTTP POST instead. see https://kroki.io/#how

pepijnve commented 3 years ago

I hadn't implemented automatic switching to POST yet indeed. Shouldn't be too hard to implement.