Closed shinkoryo closed 4 years ago
Have you used a PlantUML server, like http://www.plantuml.com/plantuml ? If this is the case, maybe the plantuml server has closed the connection. Try to connect directly with a browser to see if there is some connection problem. Also check if you are behind a firewall/proxy that may block the outgoing connection.
thanks for your reply.
I am using the server version of plantuml. But I have not found out why such an error occured. I suspect that it may be a connection problem with the proxy or a connection problem with the network. Because I use the docker image of PlantUML server and Material for MkDocs. so, I need to continue to confirm where the settings are having problems.
My tests are working fine. These are my test steps:
cd /tmp
# prepare a virtualenv for testing
mkdir umltest
python -m venv umltest/env
source umltest/env/bin/activate
# install mkdocs and required plugins
pip install mkdocs mkdocs-material plantuml-markdown
# create a new mkdocs project
mkdocs new umltest
cd umltest
# add a simple UML diagram
cat >>docs/index.md <<'EOF'
```uml
A -> B
EOF
cat >> mkdocs.yml <<EOF markdown_extensions:
docker run -d --name plantuml-server -p 28080:8080 plantuml/plantuml-server:jetty
mkdocs serve
Navigating to http://localhost:8000 show the rendered UML diagram. Check your http proxy configuration.
Thank you very much for your answer. When I delete the proxy settings of the mkdocs server, it works.
I am encounter the following error when I use mkdocs's markdown_extensions. However, I still don't know where the problem is. Can you check it please. Thanks.
error message: