Skip to content

The Polkadot's JAM Tour is coming to Asia in 2025! 👉 Register Here

✖

Macro Rendering Error

File: general/chain-state-values.md

KeyError: 'ENABLE_RPC'

Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/mkdocs_macros/plugin.py", line 688, in render
    return md_template.render(**page_variables)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/jinja2/environment.py", line 1295, in render
    self.environment.handle_exception()
  File "/opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/jinja2/environment.py", line 942, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "<template>", line 6, in top-level template code
  File "/home/runner/work/polkadot-wiki-mkdocs/polkadot-wiki-mkdocs/main.py", line 65, in rpc
    if enable_rpc():
       ^^^^^^^^^^^^
  File "/home/runner/work/polkadot-wiki-mkdocs/polkadot-wiki-mkdocs/main.py", line 9, in enable_rpc
    return os.environ["ENABLE_RPC"] == "true"
           ~~~~~~~~~~^^^^^^^^^^^^^^
  File "<frozen os>", line 714, in __getitem__
KeyError: 'ENABLE_RPC'