Indexing does not work from the command line

Created on 18 July 2024, 5 months ago

Problem/Motivation

When I run the command node js/index.node.js default it shows me the following message and does not finish executing the command:

Indexing Lunr search default...

When that command is executed it logs an error many times in watchdog and has the following message:

Symfony\Component\HttpKernel\Exception\BadRequestHttpException: Session has not been set. in Symfony\Component\HttpKernel\HttpKernel->handle() (line 83 of ./vendor/symfony/http-kernel/HttpKernel.php).

Searching for the watchdog error I found something related ( https://www.drupal.org/project/simple_sitemap/issues/3391783#comment-153... 💬 "Session has not been set" error on drush cron Active ), but I think it doesn't apply to this case because the getSession() method is only used in unit tests.

I think is something related to Drupal 10, since I'm using version 10.2.7

Steps to reproduce

Execute command node js/index.node.js default in command line.

🐛 Bug report
Status

Active

Version

1.6

Component

Code

Created by

🇲🇽Mexico ovilla

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

Comments & Activities

Production build 0.71.5 2024