Skip to content

SyntaxError: Unexpected end of JSON input with Prisma 2.x and specific Node version(s) #14834

@ThalKod

Description

@ThalKod

Bug description

Since this morning all my call to model.findMany are giving me this error when running on Heroku:

Screenshot 2022-08-16 at 15 04 31

But it's working fine when i'm running my project locally. It's the same code on heroku but the findMany calls are not working...

This is the of code for the above error:

    const pendingBets = await prisma.bet.findMany({
        where: {
            status: 0
        },
    });

Environment & setup

  • OS: MacOs
  • Database: PostgreSQL
  • Node.js version: 16.15.0

Prisma Version

2.30.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug/0-unknownBug is new, does not have information for reproduction or reproduction could not be confirmed.kind/bugA reported bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions