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

Error messages appear to be non verbose, unable to dismiss the alert #1288

Open
alessandro-ooo opened this issue Nov 15, 2024 · 0 comments
Open
Labels
kind/bug A reported bug.

Comments

@alessandro-ooo
Copy link

alessandro-ooo commented Nov 15, 2024

Bug description

When there is an error in prisma studio, a very long alert will pop up with a non-verbose error, that is soo long you cannot click "dismiss" because it goes outside the page, and you're unable to scroll down. Apparently the real error is on the very bottom of this long message, though sometimes it only appears as [object Object]. A workaround for now is to manually delete the node from the inspector. In "more details" there is the same thing.

How to reproduce

  1. Create a table, for example with an unique field.
  2. Create two records with the same value in the same field.
  3. See error

Expected behavior

I believe the alert should only tell you the error

Prisma information

I can't share my schema. Just create yours and do what I told you to reproduce the bug.

Environment variables loaded from .env
prisma : 5.22.0
@prisma/client : 5.22.0
Computed binaryTarget : windows
Operating System : win32
Architecture : x64
Node.js : v20.11.0
Query Engine (Node-API) : libquery-engine 605197351a3c8bdd595af2d2a9bc3025bca48ea2 (at node_modules.pnpm@[email protected]\node_modules@prisma\engines\query_engine-windows.dll.node)
Schema Engine : schema-engine-cli 605197351a3c8bdd595af2d2a9bc3025bca48ea2 (at node_modules.pnpm@[email protected]\node_modules@prisma\engines\schema-engine-windows.exe)
Schema Wasm : @prisma/prisma-schema-wasm 5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2
Default Engines Hash : 605197351a3c8bdd595af2d2a9bc3025bca48ea2
Studio : 0.503.0

Environment & setup

  • OS: Win11
  • Browser: Arc
  • Database: PostgreSQL

Prisma logs

Immagine 2024-11-15 194832

@alessandro-ooo alessandro-ooo added the kind/bug A reported bug. label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug A reported bug.
Projects
None yet
Development

No branches or pull requests

1 participant