I get the following error after updating to 5.3.3. Some queries started to fail.
message
:
“meta.find is not a function”
stack
:
“TypeError: meta.find is not a function\n at App._processSubQueries (/opt/node_app/lib/modules/dbconnector.js:633:28)\n at App._processSubQueries (/opt/node_app/lib/modules/dbconnector.js:647:50)\n at processTicksAndRejections (node:internal/process/task_queues:96:5)\n at async App.select (/opt/node_app/lib/modules/dbconnector.js:161:29)\n at async App._exec (/opt/node_app/lib/core/app.js:599:30)\n at async App._exec (/opt/node_app/lib/core/app.js:566:17)\n at async App.exec (/opt/node_app/lib/core/app.js:535:9)\n at async App.define (/opt/node_app/lib/core/app.js:517:9)”
status
:
“500”
@patrick not fixed sadly. I think this is related so I keep it in this thread: while trying to test I have different queries failing now, with this error:
{"status":"500","message":"meta.find is not a function","stack":"TypeError: meta.find is not a function\n at App._processSubQueries (/opt/node_app/lib/modules/dbconnector.js:633:36)\n at App._processSubQueries (/opt/node_app/lib/modules/dbconnector.js:641:42)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async App.single (/opt/node_app/lib/modules/dbconnector.js:381:13)\n at async App._exec (/opt/node_app/lib/core/app.js:599:30)\n at async App._exec (/opt/node_app/lib/core/app.js:566:17)\n at async App.exec (/opt/node_app/lib/core/app.js:535:9)\n at async App.define (/opt/node_app/lib/core/app.js:517:9)"}
And just tested the original error causing server action and this is the error I get:
{3 items
"status":"500"
"message":"Cannot read properties of undefined (reading 'sub')"
"stack":"TypeError: Cannot read properties of undefined (reading 'sub') at App._processSubQueries (/opt/node_app/lib/modules/dbconnector.js:634:31) at App.select (/opt/node_app/lib/modules/dbconnector.js:161:54) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async App._exec (/opt/node_app/lib/core/app.js:599:30) at async App._exec (/opt/node_app/lib/core/app.js:566:17) at async App.exec (/opt/node_app/lib/core/app.js:535:9) at async App.exec (/opt/node_app/lib/modules/core.js:232:13) at async App._exec (/opt/node_app/lib/core/app.js:599:30) at async App._exec (/opt/node_app/lib/core/app.js:566:17) at async App.exec (/opt/node_app/lib/core/app.js:535:9)"
}
Just making sure I applied the patch correctly: I overwrote this file
Noticed that there was also an typo in the code which is causing the error Cannot read properties of undefined (reading 'sub'). Here an update for that.