Support » Plugin: PlantUML Renderer » No image generated

  • Resolved petrockblog

    (@petrockblog)



    Hello,

    when I try to generate the sample diagram, the image on the website is not generated. This is the code in the backend:

    Now comes a diagram:

    [plantuml]
    Alice -> Bob: Authentication Request
    Bob –> Alice: Authentication Response

    Alice -> Bob: Another authentication Request
    Alice <– Bob: another authentication Response
    [/plantuml]

    And now some text.

    The image on the website gets the URL http://www.plantuml.com/plantuml/img/0m00. That leads to an HTTP error 400.

    Do you have any ideas what might be wrong here?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author toddhalfpenny

    (@toddhalfpenny)

    Hi @

    This will work, you just need to be careful with the characters, the syntax is quite specific.

    If you copy and paste the following, and make sure to paste without formatting, it should work for you;

    [plantuml]
    Alice -> Bob: Authentication Request
    Bob --> Alice: Authentication Response
    
    Alice -> Bob: Another authentication Request
    Alice <-- Bob: another authentication Response
    [/plantuml]

    This exact extract is used for the page here.

    Please let me know how you get on.

    petrockblog

    (@petrockblog)

    Thanks for the info!

    I got it working now. Interestingly, the following way “A” works, while “B” does not (I put this into the post in Text Mode):

    A:

    [plantuml]
    Alice -> Bob: Authentication Request
    Bob –> Alice: Authentication Response

    Alice -> Bob: Another authentication Request
    Alice <– Bob: another authentication Response
    [/plantuml]

    B:

    [plantuml]
    Alice -> Bob: Authentication Request
    Bob –> Alice: Authentication Response

    Alice -> Bob: Another authentication Request
    Alice <– Bob: another authentication Response
    [/plantuml]

    Method “A” is working for me for now. Thanks.

    Out of interest: Should method “B” also work from your point of view? If so, maybe this is related to another plugin that is running in my installation.

    petrockblog

    (@petrockblog)

    Ah, I just realised that “A” in “Visual” mode is exactly what is written in “B” 😉 So the example seems to be meant to be used in “visual” mode. Sorry for this confusion.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘No image generated’ is closed to new replies.