node-red-contrib-postgresql icon indicating copy to clipboard operation
node-red-contrib-postgresql copied to clipboard

AggregateError on valid query

Open andreiwow2 opened this issue 10 months ago • 1 comments

Hello, I have the following example query:

SELECT "sharepointDriveId", "fileSharepointId", "lastChangeDateTimeIso"
FROM "indexedFiles"
WHERE ("sharepointDriveId", "fileSharepointId") IN (('23132131', '4543535'), ('23132131', '232452'), ('23132131', '786745'))

Tested it in DBeaver and it works.

In node-red I set it in the query field to test and I get an AggregateError

I also tried with just SELECT * FROM "indexedFiles";

Same error, "AggregateError".


update

Apparently the error was linked to environmental variables

Seems related to this: https://github.com/alexandrainst/node-red-contrib-postgresql/issues/64

andreiwow2 avatar Jun 11 '25 12:06 andreiwow2

What about a simpler query such as SELECT 1; ?

Alkarex avatar Jun 11 '25 13:06 Alkarex