Postgres Query Parameters ... bug?

Describe the problem/error/question

Experiencing what seems to be a bug with postgres query parameters.
When I attempt to pass a JSON object through to a query the commas inside the object appear to be interfering with the parsing of the query parameters

I haven’t changed how I’m using them so I wonder if it’s a bug that’s crept. I am self taught, so it’s quite possible I’m using an ill-advised technique that has somehow worked so far but is now breaking?

What is the error message (if any)?

The error I get when I use the query parameter as intended is “The input string ended unexpectedly.”:

Please share your workflow

Happy to share the workflow if the screenshots aren’t enough, just not sure what happens to database access if I post a postgres node on here?

  • **n8n version:**1.53.1 (Cloud)
  • Database (default: SQLite):
  • **n8n EXECUTIONS_PROCESS setting (default: own, main): manual
  • **Running n8n via (Docker, npm, n8n cloud, desktop app): cloud
  • **Operating system: windows & chrome

So I think I’ve figured out what the source of the issue is. It looks like a problem with the latest Postgres node (version 2.5).

I’ve copied v2.4 from another workflow and the query and parameters now work correctly (i.e. commas inside one parameter do not impact the parsing of the parameters themselves):

Hi @jamescv

could you kindly share your workflow / dummy data → would like to reproduce this and confirm whether it’s a bug :slight_smile:

Thanks! :pray:

Hi Ria

Here you go:

I have the same issue still, with Postgres Node v2.5 indeed. How to downgrade to v2.4?

Hi all,

I have raised an internal bug ticket for this and will post here for an update.
:pray:

In the meantime, you can continue to use the old postgres node v 2.4