I have found a near four-year-old topic here, with the problem:
The plugin you are using seems to generated a bad URL.
This URL does not look like DEFLATE data.
It looks like your plugin is using HUFFMAN encoding.
This means you have now to add an header ~1 to your data. For example, you have to change:
http://www.plantuml.com/plantuml/png/VPG_J-Cm5CTd_2ai64wAg4hQfcaHL1...
to
http://www.plantuml.com/plantuml/png/~1VPG_J-Cm5CTd_2ai64wAg4hQfcaHL1...
It will work this way
Suprised it is still around as an issue...
Suggestion
I'm using a Digital Garden that probably draws upon this plugin as I didn't find anything related to plantuml server urls.
I have found in your code:
Would you consider a fix that tries sending either or both URLs so that the online site would generate the images?
I have no issues locally in Obsidian, mind you.
Alternative solution
DIdn't tried modifying the script as I know it would have no bearing on the DG template which probably takes the last working code from GH (I assume).
Having no experience in coding, I'd find it hard to inject a fix to the DG template but I'm open to suggestions.
Edit.
In your plugin settings, is there something to do with this:
Although probably this would have, again, no bearing on the live site, I assume.
Additional info
Both png and svg generation are affected and both URLs need to be patched.
Re
I have found a near four-year-old topic here, with the problem:
Suggestion
I'm using a Digital Garden that probably draws upon this plugin as I didn't find anything related to plantuml server urls. I have found in your code:
...where I see
header
with an empty string.Would you consider a fix that tries sending either or both URLs so that the online site would generate the images? I have no issues locally in Obsidian, mind you.
Alternative solution
DIdn't tried modifying the script as I know it would have no bearing on the DG template which probably takes the last working code from GH (I assume). Having no experience in coding, I'd find it hard to inject a fix to the DG template but I'm open to suggestions.
Edit. In your plugin settings, is there something to do with this:![Screenshot from 2024-03-10 15-43-53](https://github.com/joethei/obsidian-plantuml/assets/110669301/66ddb5ab-4140-4ef5-834a-fc23db5c86f3)
Additional info
Both png and svg generation are affected and both URLs need to be patched.
Thanks for your attention, Z.