#Prisma Studio logs ERR_STREAM_PREMATURE_CLOSE on start and browser refresh (no functional impact)

1 messages · Page 1 of 1 (latest)

bright cloak
#

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:

  1. Is there a recommended way to prevent or eliminate this error from appearing in the terminal?
  2. Is this related to how Prisma Studio handles connection streams?

Thanks!

mystic geyserBOT
#

You selected to wait for the human sages. They'll share their wisdom soon.

Grab some tea while you wait, or check out #ask-ai if you'd like a quick chat with the bot anyway!

ashen ginkgo
#

Hmm, can you update to the latest prisma version 7.7.0 and let us know if this issue still occurs?