Hi,
I'm using Prisma 7 with PlanetScale and the MariaDB adapter, and Prisma Studio is working correctly overall.
However, I consistently see the following error in the terminal (VS Code) when starting Prisma Studio with npx prisma studio, and also every time I refresh the Studio page in the browser:
[Prisma Studio] Error [ERR_STREAM_PREMATURE_CLOSE]: Premature close
at onclose (node:internal/streams/end-of-stream:162:30)
at process.processTicksAndRejections (node:internal/process/task_queues:85:11) {
code: 'ERR_STREAM_PREMATURE_CLOSE'
}
Important context:
- Prisma Studio starts successfully and opens in the browser
- I can view, create, and update data without any issues
- The error appears in the terminal, but does not seem to affect functionality
- The error is reproducible:
- once on Studio startup
- every time the browser page is refreshed
Environment:
- Prisma: 7.x
- Node.js: 20+
- Database: PlanetScale (MySQL)
- Adapter: @prisma/adapter-mariadb
- OS: macOS Tahoe 26.4
Questions:
- Is there a recommended way to prevent or eliminate this error from appearing in the terminal?
- Is this related to how Prisma Studio handles connection streams?
Thanks!