-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Switch to POST if the URI is too long #42
Comments
@Mogztter why not use POST by default if kroki server supports this ? |
My main concern is corporate proxy/firewall. I believe that it's more likely that a POST request will be blocked than a GET request but maybe that's not a good enough reason. In one of my previous job the corporate proxy was a nightmare so I might be biased 😂 |
Hey, lets introduce an attribute for this ?
For instance, we wilk use local kroki and we would like to force POST always |
That's a good idea 👍 |
There are several challenges we need to address. When using the option "inline" we delegate all the work to Asciidoctor.js (ie. read the image data from the specified URI and generate a data URI). In this case, Asciidoctor.js will use a GET request to read the image data from the specified URI... 😞 Another issue is that we are currently using the Virtual File System to read the image data from the specified URI but if we want to use a POST request then we need to explicitly use an HTTP client. |
It's actually possible to set the target as a data-uri: asciidoctor/asciidoctor#3657 (comment) 🎉 |
resolves #42 use a POST request if the URI is too large
@Mogztter although issue is closed, the README is not updated :(( |
Indeed it was automatically closed when I merged the pull request, reopening 😉 |
README updated! |
@Mogztter plz close |
When using very large Vega specification file (when data is embed in the file), the public instance of Kroki can return the following error "414 Request-URI Too Large nginx/1.14.0 (Ubuntu)".
I think we should use a POST request to avoid this error if the URI is longer than 4096.
See: yuzutech/kroki-go#11
The text was updated successfully, but these errors were encountered: