Skip to content

DIagrams processing fails #106

@h-enk

Description

@h-enk

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions