terrastruct / d2-playground

An online runner to play, learn, and create with D2, the modern diagram scripting language that turns text to diagrams.
https://play.d2lang.com
Mozilla Public License 2.0
73 stars 10 forks source link

D2 encountered an API error: the link to the playground is reported #58

Open yubrshen opened 4 months ago

yubrshen commented 4 months ago

Here is the link with the error: https://play.d2lang.com/?script=NMqxCsIwFIXhPU9xwDlQdMvm6ObgC1yTYxtoc-EmLYjk3YWI43fOf4jVgI8D0tlHLa88_wis8ta9eZY5FwY0aTL2Ex4LIU89iCh7ZYXger-BZmr_hLblIivawo2ImjieQZ9TwGWaHNBdd98AAAD__w%3D%3D&layout=tala&

Here is the code that cause the error:

vars: {
  d2-config: {
    layout-engine: tata
    # The above causes a API error
    # Terminal theme code
    theme-id: 300
  }
}

It seems that the offending line of the code is layout-engine: tata

If I commented out this line, then there is no more API error.