Haroon Rasheed
Haroon Rasheed

Reputation: 1

Why does prisma give an internal error while creating new record?

I am trying to create a new record, although in my response I receive the following error:

{
  "data": null,
  "errors": [
    {
      "message": "Whoops. Looks like an internal server error. Search your server logs for request ID: local:ck4rzmu0f065x0824h90npxcl",
      "path": [
        "createOrder"
      ],
      "locations": [
        {
          "line": 2,
          "column": 3
        }
      ],
      "requestId": "local:ck4rzmu0f065x0824h90npxcl"
    }
  ]
}

Any assistance would be appreciated.

Upvotes: -1

Views: 887

Answers (1)

realAlexBarge
realAlexBarge

Reputation: 1898

Please check your prisma server and database logs. If you are running docker on a local development environment you can use docker logs CONTAINER or docker-compose logs to search for the error message.

Here you can find more information on how to manage the docker environment: https://www.prisma.io/docs/prisma-server/deployment-environments/docker-rty1/

Upvotes: 0

Related Questions