qjebbs / vscode-plantuml

Rich PlantUML support for Visual Studio Code.
MIT License
1.09k stars 155 forks source link

Error: 414 URI Too Long #578

Open werwolfby opened 5 months ago

werwolfby commented 5 months ago

When working over local render server I starts to get 414, the same docker container worked before the update for the same diagrams.

JohnLeyva commented 5 months ago

my renderer is also located in locahost

Wondering if it is possible to use POST instead of GET

Error: 414 URI Too Long

GET http://localhost:8080/svg/0/... at ClientRequest.closeCallback (c:\Users\XXXXXX.vscode\extensions\jebbs.plantuml-2.18.1\out\src\plantuml\renders\httpWrapper.js:78:27) at ClientRequest.emit (node:events:514:28) at Socket.socketCloseListener (node:_http_client:464:9) at Socket.emit (node:events:526:35) at TCP. (node:net:323:12)

werwolfby commented 5 months ago

I've installed plantuml locally to mitigate the issue for now.

JohnLeyva commented 5 months ago

Another workaround

Add to C:\Windows\System32\drivers\etc\hosts

127.0.0.1 plantuml.local

In settings use http://plantuml.local:8080

werwolfby commented 4 months ago

You mean that issue is only for localhost? Then I can just use docker host name.