Wednesday 15 August 2018

Guidence trying to trouble shoot weird error with Objection & Node Postgres.

Hey all I am running into a bit of a strange error with Objection and Node Postgres. When trying to insert a record I geterror: relation "agreements" does not exist however the information is actually inserted into the corresponding table ( ie. the agreements table in this case). Queries to select records work as expected. I'm at a loss as to why this happens, as this error happens with any model not just one specifically. It also only occurs when I bind a new Knex connection to the model. (This is a multi-tenant system, with each tenant having their own DB).The fact that select queries work has me comfortable that the connection is not the issue, like wise with the fact this happens to every model that is connected using Model.bindKnex(connection). Models that use the default connection work just fine as expected.Any help/guidance would be much appreciated.Thanks!

Submitted August 16, 2018 at 01:06AM by cmarenburg

No comments:

Post a Comment