fail to render ditaa
donbowman opened this issue · comments
I have this:
@startditaa
+---------------------------------------------------------------------+
| LoadBalancer |
+--------------+----------------------------------+-------------------+
| |
v v
+--------------------------+ +--------------------------+
| nginx-ingress | | nginx-ingress |
| nginx-ingress-controller | | nginx-ingress-controller |
+--------------+--------+--+ +--+---+-------------------+
| | | |
+------+--------|---------------------+ |
| (tcp/24224) | |
| | (tcp/443) |
| +----+----+---------------+
| | |
v | |
+------------+ | +--+---------------+
| fluent-bit | | | oauth2 |
| forwarder | | | oauth2 |
+-----+------+ | +------------------+
| |
| |
+-----+------+ +-+--------------------+
| fluent-bit +->(kafka) | kibana |
| processor | | kibana |
+--+---------+ +-------------------+--+
| |
+--|------------------+ +-------------------|--+
| | Elasticsearch | | Elasticsearch v |
| \->client master<--------->master client |
| | | |
+---------------------+ +----------------------+
@endditaa
I get this error:
PlantUML rendering error:
Failed to decode generated inline diagram file (invalid utf-8 sequence of 1 bytes from index 0).
When i extract that and run plantuml manually, I get a valid SVG file.
I suspect this is because ditaa outputs png (regardless of command line), so we would need to handle that.
https://github.com/donbowman/gitbook-plugin-local-plantuml/blob/master/index.js#L43 is how I handled this in gitbook
Thanks for the report and details, this will require some rework of the code, because I generate everything inline now.
Not sure when I will get to it.
stathissideris/ditaa#30 in the upstream would render ditaa to svg, but plantuml plantuml/plantuml#38 does not