Cannot open URL

0 votes
asked Dec 3, 2022 in Bug by ayronmax (120 points)

Hello,
I am trying to run an example diagram with the C4 model library through PlantUML Web Server and the following error is returned:

PlantUML 1.2022.14beta6
[From string (line 2)]
@startuml
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml
Cannot open URL

Diagram I'm trying to run:

@startuml C4_Elements
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml

Person(personAlias, "Label", "Optional Description")
Container(containerAlias, "Label", "Technology", "Optional Description")
System(systemAlias, "Label", "Optional Description")

Rel(personAlias, containerAlias, "Label", "Optional Technology")
@enduml
commented Jul 4, 2023 by Peter
Was it resolved? I still have the same issue that it cannot open URL

PlantUML version 1.2023.9 From String (line2)
commented Jul 4, 2023 by The-Lu (67,080 points)

Hi P., 

  • What is your plugin?
  • You use directly plantuml.jar...

See good result here, with a online server:

@startuml C4_Elements
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml

Person(personAlias, "Label", "Optional Description")
Container(containerAlias, "Label", "Technology", "Optional Description")
System(systemAlias, "Label", "Optional Description")

Rel(personAlias, containerAlias, "Label", "Optional Technology")
@enduml

Regards.

1 Answer

0 votes
answered Dec 4, 2022 by The-Lu (67,080 points)

Hello A., and all,

The issue is due, on C4_Container.puml, to:

!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/v2.5.0/C4_Context.puml

Then I can open an issue here:

As possible workaround you could use the (not full updated) internal C4 engine, with:

!include <C4/C4_Container.puml>

as:

Enjoy.
Regards.

commented Dec 4, 2022 by kirchsth (6,280 points)

Sorry I merged a PR too fast, include is working again (details see https://github.com/plantuml-stdlib/C4-PlantUML/issues/271)
BR Helmut

commented Dec 4, 2022 by The-Lu (67,080 points)

This is now fixed. yes

Thanks to the C4 model library maintainers.

commented Dec 5, 2022 by ayronmax (120 points)
thank you all.
...