Cannot read properties of null (reading 'replace')

After update 6.8 I am receiving several errors like this, can anyone help?

TypeError: Cannot read properties of null (reading 'replace')\n at QueryBuilder_MySQL.whereGroup (/opt/node_app/lib/core/db.js:57:47)\n at QueryBuilder_MySQL.fromJSON (/opt/node_app/lib/core/db.js:181:14)\n at knex. [as fromJSON] (/opt/node_app/node_modules/knex/lib/knex-builder/make-knex.js:271:30)\n at App.single (/opt/node_app/lib/modules/dbconnector.js:400:19)\n at App._exec (/opt/node_app/lib/core/app.js:708:49)\n at App._exec (/opt/node_app/lib/core/app.js:675:20)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async App.exec (/opt/node_app/lib/core/app.js:644:5)\n at async App.define (/opt/node_app/lib/core/app.js:626:5)

Seems like some of your where conditions are empty.

Check the exact query and its parameters

It seems to me that in NodeJs we can no longer use just the contem, now we need to validate
I solved the problem by adding a conditional.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.