jawira / doctrine-diagram-bundle

📐 Symfony Bundle to generate database diagrams
MIT License
58 stars 4 forks source link

Plantuml - 414 Request-URI Too Large #6

Open jroszkiewicz opened 2 years ago

jroszkiewicz commented 2 years ago

Hey, we have a lot of entities in project, so when I tried to create diagram by command I got an error:

Warning: file_get_contents(http://www.plantuml.com/plantuml/svg/{blablabla}): Failed to open stream: HTTP request failed!

Manual result of http request: 414 Request-URI Too Large

I know it's depends on 3rd party solutions, but maybe is any other solution?

jawira commented 2 years ago

Hello, sorry for the delay but I totally missed this issue. You are right, internally I use public PlantUml server, in order to avoid abuse they do not allow to convert huge diagrams. One solution is to use .puml format using --extension option, then install PlantUml locally to convert your puml diagram to png:

// generate diagram.png
$ plantuml -tpng diagram.puml

Following version will include this in configuration, please be patient.