-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Unable to generate diagrams with Kroki using POST method #448
Comments
Asciidoctor.js is synchronous and Asciidoctor extensions are also synchronous so it won't work. If you are using this extension in Antora, you will actually use this implementation https://github.com/ggrossetie/unxhr (synchronous HTTP request in Node.js).
I can help you but you will need to provide a simple/minimal reproduction case. |
I totally agree.
For sure, here is a full example : Kroki as a Docker container
Antora playbookhttps://github.com/jay-blanc/antora-playbook.git
Result
Then it's stucked on |
Thanks, I will try to reproduce this issue this week 😉 |
Hello,
I'm facing an issue generating diagrams :
The result is the diagram generation is completely stucked.
Indeed, the reading of the HTTP response is never done and the generation of the whole documentation never achieved.
This behaviour never occurred using the GET method (thus it works only with light plantuml diagrams but not huge plantuml diagrams or complex vega diagrams for example).
Looking the source code of the asciidoctor-kroki extension, I saw the use of synchronous XMLHttpRequest (using the xhr.open(method, uri, false) settings) which seems to be deprecated.
I tried using the asynrchonous way but it seems there's a lot of impacts in the source code of the extension.
Did you reproduce it ?
Could you please help me solving this issue ?
PS : the kroki server I run manually is OK as I'm able to generate huge diagrams using POST method through Postman for example. So it really comes from the extension (version
0.17.0
).The text was updated successfully, but these errors were encountered: