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

Prisma Studio Crashes with RangeError: Invalid string length #908

Closed
hallahan opened this issue Apr 8, 2022 · 2 comments
Closed

Prisma Studio Crashes with RangeError: Invalid string length #908

hallahan opened this issue Apr 8, 2022 · 2 comments

Comments

@hallahan
Copy link

hallahan commented Apr 8, 2022

Hope this is enough to come up with a fix!

  1. Prisma version (prisma -v or npx prisma -v):

3.12.0

  1. Logs from Developer Tools Console or Command line, if any:
Failed to load resource: the server responded with a status of 404 (Not Found)
index.js:1 RangeError: Invalid string length
    at JSON.stringify (<anonymous>)
    at _t.serialize (index.js:1:49091)
    at _t.update (index.js:1:12197)
    at Cc (vendor.js:50:6994)
    at _t.n (vendor.js:50:6688)
    at _t.update (index.js:1:48948)
    at Cc (vendor.js:50:6994)
    at _t.n (vendor.js:50:6688)
    at index.js:1:82272
    at Array.forEach (<anonymous>)
Uncaught (in promise) 
B
code: undefined
context: {message: 'Invalid string length', stack: 'RangeError: Invalid string length\n    at JSON.stri…dex.js:1:82272\n    at Array.forEach (<anonymous>)'}
message: "Studio bootstrap failed"
nativeError: 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:82272 at Array.forEach (<anonymous>)
path: "BootstrapStore.init"
stack: undefined
type: undefined
  1. Does the issue persist even after updating to the latest prisma CLI dev version? (npm i -D prisma@dev)

Still crashes

  1. Prisma schema (if relevant):

Cannot publish this publicly. Happy to chat 1-1.

@hallahan
Copy link
Author

hallahan commented Apr 8, 2022

I'm using PostgreSQL.

I tried disabling previewFeatures = ["extendedIndexes", "fullTextSearch"], but it still crashes the same.

@hallahan
Copy link
Author

hallahan commented Apr 8, 2022

Ah, this is a duplicate.

#895

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

2 participants