Argument #1 ($ip) must be of type string, null given

Created on 11 October 2024, 6 months ago

Problem/Motivation

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->verifyIp(NULL)

Steps to reproduce

https://app.travis-ci.com/github/Gizra/drupal-starter/jobs/627031832
Install the site from zero using an install profile with crowdsec installed

Proposed resolution

Make sure we do not act on non-web requests

Remaining tasks

Create the MR

User interface changes

-

API changes

-

Data model changes

-

🐛 Bug report
Status

Active

Version

1.1

Component

Code

Created by

🇭🇺Hungary aron novak Hungary, Budapest

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024