Disable middleware while module isn't configured yet
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3422889. --> Reported by: [jurgenhaas](https://www.drupal.org/user/168924) >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>Pager requests fail with the following stack trace if the module isn't configured yet:</p> <pre>Symfony\Component\Config\Definition\BaseNode-&amp;gt;finalize() (Line: 252)<br>Symfony\Component\Config\Definition\ArrayNode-&amp;gt;finalizeValue() (Line: 421)<br>Symfony\Component\Config\Definition\BaseNode-&amp;gt;finalize() (Line: 36)<br>Symfony\Component\Config\Definition\Processor-&amp;gt;process() (Line: 46)<br>Symfony\Component\Config\Definition\Processor-&amp;gt;processConfiguration() (Line: 295)<br>CrowdSec\CapiClient\Watcher-&amp;gt;configure() (Line: 75)<br>CrowdSec\CapiClient\Watcher-&amp;gt;__construct() (Line: 110)<br>Drupal\crowdsec\Client-&amp;gt;watcher() (Line: 123)<br>Drupal\crowdsec\Client-&amp;gt;remediation() (Line: 150)<br>Drupal\crowdsec\Client-&amp;gt;verifyIp() (Line: 72)<br>Drupal\crowdsec\Middleware-&amp;gt;handle() (Line: 48)<br>Drupal\Core\StackMiddleware\ReverseProxyMiddleware-&amp;gt;handle() (Line: 51)<br>Drupal\Core\StackMiddleware\NegotiationMiddleware-&amp;gt;handle() (Line: 36)<br>Drupal\Core\StackMiddleware\AjaxPageState-&amp;gt;handle() (Line: 51)<br>Drupal\Core\StackMiddleware\StackedHttpKernel-&amp;gt;handle() (Line: 704)<br>Drupal\Core\DrupalKernel-&amp;gt;handle() (Line: 19)</pre><h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Disable middleware until module is properly configured.</p>
issue