Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mermaid charts are loading irregularly in the public API #1783

Closed
scali opened this issue Oct 4, 2024 · 6 comments
Closed

Mermaid charts are loading irregularly in the public API #1783

scali opened this issue Oct 4, 2024 · 6 comments

Comments

@scali
Copy link

scali commented Oct 4, 2024

Quite same as #1443, but a bit different

Going to kroki.io and to samples of Mermaid chart. Going to the link of the diagrams directly (Sequence Diagram or Gantt) :

For example, this link :
https://kroki.io/mermaid/svg/eNpljzFuwzAMRXefgtlrZzcKBymCtMjQoTegZdYiwoqqTLfw7SMrSDKEi4j_H6nPaqLfmYKjA-OY8KeCXBGTseOIwWAv7OhJfdO-aMWtu5P60MIHiSis_Qt4_QdMBIvOu0KKaswEinnnyZ2LuNbK3zYcefQGOCKHycAvUZ3XMCTGglMYyvupRpAKq99wHf1CYw0oYF7n7Ezw2qdtFxP9IUvTNNX9s7orsVt4T4S2eRhdPiufsUbvdbZH-KzXt4wnFVlgVB021QUIImOl

took from the offical page of exemples of kroki.io

The link loads irregularly, and when it failed, there is this message :

Convert plain text diagrams to images !
🤖 bip... bip... something wrong happened!
400 Error: An error occurred while converting the diagram

I'm using kroki to load images in a asciidoctor/antora document and have the same kind of error :
Error 400: An error occurred while converting the diagram

@bartkl
Copy link

bartkl commented Oct 6, 2024

I'm getting this exact issue. Just got to know about Kroki! and the AsciiDoctor extension and was going mad about not understanding how unpredictable the extension seemed. Turns out (as op points out) it's the Kroki Mermaid endpoint.

FYI: With GraphViz it's working consistently.

@scali
Copy link
Author

scali commented Oct 7, 2024

As I have this option, I've ended up by deploying a self managed version of Kroki, as described here, and setting the kroki-server-url parameter in the playbook configuration file (antora-playbook.yml)

asciidoc:
  extensions:
  - asciidoctor-kroki
  attributes:
    kroki-fetch-diagram: false
    kroki-server-url: https://kroki.my-company.domain

The service run nicely and the charts are loading now.

Maybe the public site of kroki.io is sometime overloaded.

@scali scali changed the title Mermaid charts are loading irregularly Mermaid charts are loading irregularly in the public API Oct 7, 2024
@jamesward
Copy link

I'm now getting this error consistently. Can we get an update on ETA to fix?

@ggrossetie
Copy link
Member

Should be fixed now.

@ggrossetie
Copy link
Member

I just deployed a new version that includes #1745. It's not perfect but hopefully it should improve Mermaid's reliability.

Please open a new issue if you are still experiencing issues. If possible, please include the time range during which you observed instabilities. It greatly helps troubleshooting 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants