NODE-10 - PrismaClientValidationError:
from Sentry <noreply@md.getsentry.com> · 11/6/2026, 6:05:12 PM
Haiku summary
Prisma validation error in Munchable's nearby API production causing invalid NaN coordinate queries.
Full body
Details
-------
https://munchable.sentry.io/issues/7833192209/?referrer=alert_email&alert_type=email&alert_timestamp=1793988310519&alert_rule_id=3055900¬ification_uuid=2a09cfe0-872e-4e9c-9313-adf864168398&environment=production
Tags
----
* browser = curl 8.7.1
* browser.name = curl
* environment = production
* handled = no
* interface_type = exception
* level = error
* mechanism = auto.middleware.express
* os = Ubuntu Linux 24.04
* os.name = Ubuntu Linux
* runtime = node v18.20.5
* runtime.name = node
* sentry:release = a333cece7f9894645a019c73f5d9384728cab81d
* server_name = d55d77c657a9
* transaction = GET /api/restaurants/nearby
* url = https://api.munchable.io/api/restaurants/nearby
Exception
-----------
PrismaClientValidationError:
Invalid `prisma.restaurant.findMany()` invocation:
{
where: {
latitude: {
lte: NaN,
+ gte: Float
},
longitude: {
gte: NaN,
lte: NaN
}
},
take: 60,
include: {
_count: {
select: {
posts: true
}
}
}
}
Argument `gte` is missing.
File "/app/dist/services/restaurant.service.js", line 162, in Object.getNearbyRestaurants
const restaurants = await prisma_1.prisma.restaurant.findMany({
File "/app/dist/controllers/restaurants.controller.js", line 109, in nearby
const restaurants = await restaurantService.getNearbyRestaurants(Number(latitude), Number(longitude), Number(radius) || 10, Number(l {snip}
...
(2 additional frame(s) were not displayed)
Request
-----------
User
-----------
Unsubscribe:
id: 435eadf0-0761-49b0-936a-263e74c5bc52 · sourceId: gmail:charles.punay@gmail.com:1a1b20940f1f06ad