plantuml-stdlib / C4-PlantUML

C4-PlantUML combines the benefits of PlantUML and the C4 model for providing a simple way of describing and communicate software architectures
MIT License
6.41k stars 1.1k forks source link

"Cannot open URL" on Online Server #341

Closed flyisland closed 8 months ago

flyisland commented 8 months ago

I copied and pasted the content of "https://github.com/plantuml-stdlib/C4-PlantUML/blob/master/samples/C4_Context%20Diagram%20Sample%20-%20bigbankplc-landscape.puml" on the Online Server, and got the below "Cannot open URL" issue:

image

But I can generate the image of this puml on my laptop with the local jar plantuml installation.

kirchsth commented 8 months ago

Hi @flyisland,

sorry, yes this is a known problem of the online server. It depending which server answers your response (details see forum). A non deterministic solution is that you refresh the browser and after some tries it is working.

I think the simplest and practically solution is that you use the already integrated C4 Library version (it is up to date, already part of PlantUML and no URL include is required).

If you replace e.g.

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

with

!include  <C4/C4_Container.puml>

then you use the integrated C4 Library and it works with all PlantUML online server versions.

(If you click on the following image you see the updated source)

I hope it helps. BR Helmut

flyisland commented 8 months ago

Hi @kirchsth, thanks for the quick reply, it works!