Vinnymac
Vinnymac
PPrisma
Created by Vinnymac on 2/26/2025 in #help-and-questions
Queries hanging indefinitely
I am experiencing a weird issue. If I enable PrismaInstrumentation a small subset of queries in a large application begin to hang. The promises remain permanently unsettled. Enabling debug logging does not reveal much about what’s happening, just that the query never runs. It shows that the last query is DEALLOCATE, which usually runs right before a query does. I have confirmed that no query is ever sent to the database despite a connection being established when this happens. Disabling PrismaInstrumentation by commenting out “new PrismaInstrumentation()” fixes the issue. Disabling any other code does not fix the issue. Simplifying the SQL queries to a very basic query also seems to fix the issue. I’ve been investigating this issue for about a month now, and have been working on a reproduction, but it’s an extremely tricky problem to nail down. Any advice? NodeJS 22 Prisma 6.1.0 through 6.4.1 all exhibit this behavior OS Alpine 3.21 Driver target is Linux musl OpenSSL 3.x Postgres 15
20 replies