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

DIagrams processing fails #106

Open
h-enk opened this issue Sep 2, 2024 · 0 comments
Open

DIagrams processing fails #106

h-enk opened this issue Sep 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@h-enk
Copy link
Member

h-enk commented Sep 2, 2024

Description

Describe the issue that you're seeing.

render-codeblock-kroki.html fails:

ERROR The "kroki" code block render hook was unable to get the remote diagram. See "D:\THULITE\getdoks.org\content\blog\doks-1-2\index.md:44:1". failed to fetch remote resource: Bad Request
ERROR The "kroki" code block render hook was unable to get the remote diagram. See "D:\THULITE\getdoks.org\content\docs\built-ins\diagrams.md:100:1". failed to fetch remote resource: Bad Request

Fix

  1. Update for Source code
  2. Replace SVG with svg (lower):
    {{- /* Get diagram. */}}
    {{- $body := dict "diagram_source" $inner "diagram_type" $diagramType "output_format" "svg" | jsonify }}

Steps to reproduce

Clear steps describing how to reproduce the issue. Please please please link to a demo project if possible, this makes your issue much easier to diagnose (seriously).

Expected result

What should happen?

Actual result

What happened.

Environment

Paste the information here as shown by npm run info

@h-enk h-enk added the bug Something isn't working label Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant