Argument #1 ($ip) must be of type string, null given
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3480150. --> Reported by: [aron novak](https://www.drupal.org/user/61864) Related to !3 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p><code>TypeError: Drupal\crowdsec\Client::verifyIp(): Argument #1 ($ip) must be of type string, null given, called in /var/www/html/web/modules/contrib/crowdsec/src/Middleware.php on line 87 in /var/www/html/web/modules/contrib/crowdsec/src/Client.php on line 159 #0 /var/www/html/web/modules/contrib/crowdsec/src/Middleware.php(87): Drupal\crowdsec\Client-&gt;verifyIp(NULL)</code></p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <p><a href="https://app.travis-ci.com/github/Gizra/drupal-starter/jobs/627031832">https://app.travis-ci.com/github/Gizra/drupal-starter/jobs/627031832</a><br> Install the site from zero using an install profile with crowdsec installed</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Make sure we do not act on non-web requests</p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <p>Create the MR</p> <h3 id="summary-ui-changes">User interface changes</h3> <p>-</p> <h3 id="summary-api-changes">API changes</h3> <p>-</p> <h3 id="summary-data-model-changes">Data model changes</h3> <p>-</p>
issue