Skip to main content
smkml
Staff
Staff
December 16, 2024

Troubleshooting Tip: Import Jinja script failed shows 'Response with errors'

  • December 16, 2024
  • 0 replies
  • 537 views
Description

 

This article describes how to troubleshoot when importing the Jinja script fails showing 'response with errors'.

 

import jinja script error.png

 

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:

 

import header.png

 

import main.png

 

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.

 

gui debug.png

 

Proceed to import the 'header' template first and import the 'main' template following that.

import both.gif