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 in Prisma Studio While Filtering Data for object in mongodb #1291

Open
bipulk69 opened this issue Nov 27, 2024 · 0 comments
Open
Labels
kind/bug A reported bug.

Comments

@bipulk69
Copy link

Bug description

I'm encountering a fatal error in Prisma Studio when attempting to filter data for a specific category in my MongoDB project.

When filtering the data for the logistics category in Prisma Studio (localhost:5555), I encounter the following error:
Fatal Error: A non-recoverable error has occurred. Reload Studio to continue.

Here is the snippet of the document from the database
{
"packageId": {
"$oid": "66f24ed9aaf097c33e457e89"
},
"projectId": {
"$oid": "66f24e8faaf097c33e257e7d"
},
"reportId": {
"$oid": "66f256d6aaf097c33e158406"
},
"type": "Solar",
"source": "Photovoltaic",
"consumption": 45,
"unit": "kWh",
"safeDelete": false,
"isOCR": false,
"logistics": {
"noOfTrips": 0,
"fuelTypeLogistics": "Diesel",
"fuelUsedByTrucks": 34,
"ownershipType": "Service Provider",
"vehicleType": "LGV"
},
"supportingDocuments": [],
"reportingMonthYear": {
"$date": "2024-05-01T00:00:00.000Z"
},
"isCopy": false,
"createdAt": {
"$date": "2024-10-01T05:12:00.846Z"
},
"updatedAt": {
"$date": "2024-10-01T05:12:00.846Z"
},
"__v": 0
}

No detailed error logs are available in Prisma Studio itself.
Other parts of the data seem to work fine until I filter for this specific field.

2eb5e187-dc12-4ccf-a849-7a93f808c409

How to reproduce

  1. Run npx prisma studio on the project.
  2. Open Prisma Studio at localhost:5555.
  3. Attempt to filter or interact with data related to the logistics field.
  4. Encounter the fatal error.

Expected behavior

No response

Prisma information

Prisma Version: 5.22.0

Environment & setup

npx prisma studio

Prisma logs

No response

@bipulk69 bipulk69 added the kind/bug A reported bug. label Nov 27, 2024
@bipulk69 bipulk69 changed the title Fatal Error in Prisma Studio While Filtering Data for Logistics Category Fatal Error in Prisma Studio While Filtering Data for object in mongodb Nov 28, 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