Errorname / prisma-multi-tenant

🧭 Use Prisma as a multi-tenant provider for your application
MIT License
395 stars 45 forks source link

Error occurred during query execution: ConnectorError(ConnectorError #49

Closed kongyujian closed 4 years ago

kongyujian commented 4 years ago

It seems to me like the pgbouncer=true option is not being respected, any idea why this is the case?

image

Not sure if anybody else is facing the same.

Errorname commented 4 years ago

Is the option on the management db url or on a tenant's ?

kongyujian commented 4 years ago

I have enabled that option for both management and tenant URLs.

Have checked the URL stored within DB too, and those maintain the pgbouncer=true option too.

Errorname commented 4 years ago

In that case, I'm not sure the issue comes from Prisma-multi-tenant, because it passes the URL as is.

Can you try using a PrismaClient instead and see if you replicate the issue?

kongyujian commented 4 years ago

Ok my bad, I recall largely the reason why I wanted to update prisma from 2.2.0 to 2.4.1 was because of this issue on Prisma

https://github.com/prisma/prisma/issues/2921

I think pmt on 2.4.1 should fix this

Errorname commented 4 years ago

Alright, I am finishing some work on pmt and will make a release soon (this evening probably)

Errorname commented 4 years ago

I just release pmt@2.3.1 which includes your PR updating Prisma. Don't hesitate to re-open with you still have an issue!