Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad Message 414 : reason URI Too Long (Large files) #324

Open
SJrX opened this issue Dec 15, 2023 · 6 comments
Open

Bad Message 414 : reason URI Too Long (Large files) #324

SJrX opened this issue Dec 15, 2023 · 6 comments

Comments

@SJrX
Copy link

SJrX commented Dec 15, 2023

Describe the bug
This is a duplicate bug, but for some reason none of the existing bugs show up with this error so I wanted to make it searchable, with the solution.

To Reproduce
Create a large plantuml diagram with a URL longer than 8 KB.

Expected behavior
It should render.

Actual Behaviour
Bad Message 414
reason: URI Too Long

Workaround
At least for the Jetty version, you can supply the following environment variable to the container.

  • _JAVA_OPTIONS=-Djetty.httpConfig.requestHeaderSize=65536

Additional context
Add any other context about the problem here.

@SJrX
Copy link
Author

SJrX commented Dec 15, 2023

Workaround for #87 #25 plantuml/plantuml-stdlib#79

@grivo
Copy link

grivo commented Apr 6, 2024

@SJrX - couldn't you provide an example of docker start shell command, i still can not pass this options to dockerized server

thanks!

@grivo
Copy link

grivo commented Apr 8, 2024

just an update for workaround from above

it's much better to use JAVA_TOOL_OPTIONS in case of docker's jetty read only version since nor JAVA_OPTIONS neither
_JAVA_OPTIONS works, yet JAVA_TOOL_OPTIONS works fine

so i have ended up with sort of requestHeaderSize set to 64k

docker run -d -p 127.0.0.1:8090:8080 -e JAVA_TOOL_OPTIONS=-Djetty.httpConfig.requestHeaderSize=65536 plantuml/plantuml-server:jetty

@VladimirAlexiev
Copy link

@SJrX please Close this

@SJrX
Copy link
Author

SJrX commented May 10, 2024

@VladimirAlexiev can you explain why you want this closed. If you are a maintainer can you close it with a rationale. It seemed to have helped at least two people.

@VladimirAlexiev
Copy link

@SJrX Sorry, I don't remember why I said "Close".
@arnaudroques can you increase requestHeaderSize set to 64k on the deployed Plantuml server? Does it use Jetty? It won't cause any memory problem, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants