Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal Error when loading prisma studio #884

Closed
tiller92 opened this issue Mar 19, 2022 · 7 comments
Closed

Fatal Error when loading prisma studio #884

tiller92 opened this issue Mar 19, 2022 · 7 comments

Comments

@tiller92
Copy link

  1. Prisma version (prisma -v or npx prisma -v
prisma                  : 3.12.0-dev.9
@prisma/client          : 3.9.1
Current platform        : darwin
Query Engine (Node-API) : libquery-engine 3f4e645b4b21517662fa7940520ce0b50303cb11 (at node_modules/@prisma/engines/libquery_engine-darwin.dylib.node)
Migration Engine        : migration-engine-cli 3f4e645b4b21517662fa7940520ce0b50303cb11 (at node_modules/@prisma/engines/migration-engine-darwin)
Introspection Engine    : introspection-core 3f4e645b4b21517662fa7940520ce0b50303cb11 (at node_modules/@prisma/engines/introspection-engine-darwin)
Format Binary           : prisma-fmt 3f4e645b4b21517662fa7940520ce0b50303cb11 (at node_modules/@prisma/engines/prisma-fmt-darwin)
Default Engines Hash    : 3f4e645b4b21517662fa7940520ce0b50303cb11
Studio                  : 0.458.0

  1. Logs from Developer Tools Console or Command line, if any:
no logs in console
  1. Does the issue persist even after updating to the latest prisma CLI dev version? (npm i -D prisma@dev)
yes
  1. Prisma schema (if relevant):
generator client {
  provider = "prisma-client-js"
  binaryTargets = ["native"]
}

datasource db {
  provider = "postgresql"
  url      = env("DATABASE_URL")
}



model User {
  id         Int    @id @default(autoincrement())
  first_name String
  last_name  String
  email      String
  username   String @unique
  password   String
  stocks Userstocks[]
  crypto Usercrypto[]
  realestate Userrealestate[]
  debt Userdebt[]
}

model Userstocks {
  id  Int @id @default(autoincrement())
  ticker String
  shares Decimal
  owner User @relation(fields: [ownerName],references: [username])
  ownerName String
}

model Usercrypto {
   id  Int @id @default(autoincrement())
  name String
  shares Decimal
  owner User @relation(fields: [ownerName],references: [username])
  ownerName String
}

model Userrealestate {
  id  Int @id @default(autoincrement())
  name String
  value Decimal
  owner User @relation(fields: [ownerName],references: [username])
  ownerName String
}

model Userdebt {
  id  Int @id @default(autoincrement())
  type String
  interest Decimal
  debt Decimal
  owner User @relation(fields: [ownerName],references: [username])
  ownerName String
}


@tiller92
Copy link
Author

Here is the error details that pop up in the browser.

Invalid string length
RangeError: Invalid string length
    at JSON.stringify (<anonymous>)
    at _t.serialize (http://localhost:5555/assets/index.js:1:49091)
    at _t.update (http://localhost:5555/assets/index.js:1:12197)
    at Cc (http://localhost:5555/assets/vendor.js:50:6994)
    at _t.n (http://localhost:5555/assets/vendor.js:50:6688)
    at _t.update (http://localhost:5555/assets/index.js:1:48948)
    at Cc (http://localhost:5555/assets/vendor.js:50:6994)
    at _t.n (http://localhost:5555/assets/vendor.js:50:6688)
    at http://localhost:5555/assets/index.js:1:82151
    at Array.forEach (<anonymous>)

@NathanJeong
Copy link

Did you solve this problem? Suddenly I got the same problem too.

@rahXephonz
Copy link

rahXephonz commented Mar 22, 2022

Please check this issue and comment #867 this relation with your error problems

@tiller92
Copy link
Author

tiller92 commented Mar 22, 2022 via email

@janpio
Copy link
Contributor

janpio commented Apr 14, 2022

See #895

@janpio janpio closed this as completed Apr 14, 2022
@tiller92
Copy link
Author

tiller92 commented Apr 14, 2022 via email

@tiller92
Copy link
Author

tiller92 commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants