Description
This article describes how to troubleshoot when importing the Jinja script fails showing 'response with errors'.
Scope
FortiManager.
Solution
In FortiManager, jinja2 has an 'import' function where it uses a whole content/template as a variable.
For example, two templates 'main' and 'header' below shows that 'main' uses 'header' content as a variable:
If only the 'main' template is imported, it will fail due to the unrecognized value of the 'header', and the error from the browser by enabling the GUI debug will appear.
Proceed to import the 'header' template first and import the 'main' template following that.
Labels: