Skip to content

Refreshing prisma studio is stuck on loading screen #675

@hedwiggggg

Description

@hedwiggggg

Running (p)np(m/x) prisma studio the browser opens the studio @ http://localhost:5555 and is working fine.
Refreshing the page is stuck in the loading / skeleton screen.
The request to the api will never fulfill and the console throws an error.

I am using the latest prisma version, pnpm and I am working in a vscode devcontainer.

  1. Prisma version (prisma -v or npx prisma -v):
prisma               : 2.22.0
@prisma/client       : 2.22.0
Current platform     : debian-openssl-1.1.x
Query Engine         : query-engine 60cc71d884972ab4e897f0277c4b84383dddaf6c (at ../../node_modules/.pnpm/@prisma+engines@2.22.0-21.60cc71d884972ab4e897f0277c4b84383dddaf6c/node_modules/@prisma/engines/query-engine-debian-openssl-1.1.x)
Migration Engine     : migration-engine-cli 60cc71d884972ab4e897f0277c4b84383dddaf6c (at ../../node_modules/.pnpm/@prisma+engines@2.22.0-21.60cc71d884972ab4e897f0277c4b84383dddaf6c/node_modules/@prisma/engines/migration-engine-debian-openssl-1.1.x)
Introspection Engine : introspection-core 60cc71d884972ab4e897f0277c4b84383dddaf6c (at ../../node_modules/.pnpm/@prisma+engines@2.22.0-21.60cc71d884972ab4e897f0277c4b84383dddaf6c/node_modules/@prisma/engines/introspection-engine-debian-openssl-1.1.x)
Format Binary        : prisma-fmt 60cc71d884972ab4e897f0277c4b84383dddaf6c (at ../../node_modules/.pnpm/@prisma+engines@2.22.0-21.60cc71d884972ab4e897f0277c4b84383dddaf6c/node_modules/@prisma/engines/prisma-fmt-debian-openssl-1.1.x)
Default Engines Hash : 60cc71d884972ab4e897f0277c4b84383dddaf6c
Studio               : 0.379.0
  1. Logs from Developer Tools Console or Command line, if any:
root@pop-os:/workspaces/packages/server# pnpm prisma studio
Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma
Prisma Studio is up on http://localhost:5555
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
TypeError: Converting circular structure to JSON
    --> starting at object with constructor 'Object'
    |     property 'fields' -> object with constructor 'Array'
    |     index 0 -> object with constructor 'Object'
    |     ...
    |     index 0 -> object with constructor 'Object'
    --- property 'type' closes the circle
    at JSON.stringify (<anonymous>)
    at serialize (/workspaces/feedbax/node_modules/.pnpm/prisma@2.22.0/node_modules/prisma/build/index.js:130707:17)
    at HTTPNodeTransport.respond (/workspaces/feedbax/node_modules/.pnpm/prisma@2.22.0/node_modules/prisma/build/index.js:130722:34)
    at /workspaces/feedbax/node_modules/.pnpm/prisma@2.22.0/node_modules/prisma/build/index.js:139554:29
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
  1. Does the issue persist even after updating to the latest prisma alpha? (npm i -D @prisma/cli@dev)

yes, installed

dependencies:
+ @prisma/cli 2.16.0-dev.68 (2.20.1 is available)
- @prisma/client 2.22.0
+ @prisma/client 2.23.0-dev.4
- prisma 2.22.0
+ prisma 2.23.0-dev.4
  1. Prisma schema (if relevant):
    At least the models doesn't seem to be relevant.
    Havn't tested it with another provider.
datasource db {
  provider = "sqlite"
  url      = "file:./dev.db"
}

generator client {
  provider = "prisma-client-js"
}

model User {
  id      Int      @id @default(autoincrement())
  email   String   @unique
  name    String?
}

Metadata

Metadata

Assignees

Labels

bug/2-confirmedBug has been reproduced and confirmed.kind/bugA reported bug.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions